mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
[YoutubeDL] Use error_to_str
This commit is contained in:
parent
7f8b271465
commit
fb043a6e4e
|
@ -675,8 +675,8 @@ class YoutubeDL(object):
|
|||
return self.process_ie_result(ie_result, download, extra_info)
|
||||
else:
|
||||
return ie_result
|
||||
except ExtractorError as de: # An error we somewhat expected
|
||||
self.report_error(compat_str(de), de.format_traceback())
|
||||
except ExtractorError as e: # An error we somewhat expected
|
||||
self.report_error(error_to_str(e), e.format_traceback())
|
||||
break
|
||||
except MaxDownloadsReached:
|
||||
raise
|
||||
|
|
Loading…
Reference in a new issue