mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[douyutv] Simplify usage of isinstance
This commit is contained in:
parent
8343a03357
commit
2ddf083588
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def _real_extract(self, url):
|
|||
error_code = config.get('error', 0)
|
||||
if error_code is not 0:
|
||||
error_desc = 'Server reported error %i' % error_code
|
||||
if isinstance(data, compat_str) or isinstance(data, compat_basestring):
|
||||
if isinstance(data, (compat_str, compat_basestring)):
|
||||
error_desc += ': ' + data
|
||||
raise ExtractorError(error_desc, expected=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue