mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-22 15:14:54 +01:00
log failure from yt audio extractor
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import logging
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
from pytube import YouTube
|
from pytube import YouTube
|
||||||
@@ -40,5 +41,6 @@ class YouTubeAudioExtractorPlugin(Plugin):
|
|||||||
'value': output
|
'value': output
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
except:
|
except Exception as e:
|
||||||
|
logging.warning(f'Failed to extract audio from YouTube video: {str(e)}')
|
||||||
return {'result': 'Failed to extract audio'}
|
return {'result': 'Failed to extract audio'}
|
||||||
|
|||||||
Reference in New Issue
Block a user