1
0
Fork 0
mirror of synced 2024-05-23 22:09:38 +12:00

Pass required params when erroring

This commit is contained in:
Phxntxm 2017-08-04 13:59:10 -05:00
parent 85d0b8ba74
commit 7b2af300c0

View file

@ -159,7 +159,7 @@ class YoutubeDLLiveStreamSource(discord.FFmpegPCMAudio):
raise ExtractionError('Could not extract information from {}\n\n{}'.format(self.url, e))
if not info.get('is_live', False):
raise WrongEntryTypeError("This is not a livestream!")
raise WrongEntryTypeError("This is not a livestream!", True, info.get('webpage_url', None) or info.get('url', None))
# Set our info
self.info = info