mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 12:42:29 +03:00
fix wrong except branch in json_output.py
This commit is contained in:
parent
cd52950a50
commit
806a527ad0
@ -14,7 +14,7 @@ def output(video_extractor, pretty_print=True):
|
||||
try:
|
||||
if ve.audiolang:
|
||||
out['audiolang'] = ve.audiolang
|
||||
except NameError:
|
||||
except AttributeError:
|
||||
pass
|
||||
if pretty_print:
|
||||
print(json.dumps(out, indent=4, sort_keys=True, ensure_ascii=False))
|
||||
|
Loading…
Reference in New Issue
Block a user