mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +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:
|
try:
|
||||||
if ve.audiolang:
|
if ve.audiolang:
|
||||||
out['audiolang'] = ve.audiolang
|
out['audiolang'] = ve.audiolang
|
||||||
except NameError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
if pretty_print:
|
if pretty_print:
|
||||||
print(json.dumps(out, indent=4, sort_keys=True, ensure_ascii=False))
|
print(json.dumps(out, indent=4, sort_keys=True, ensure_ascii=False))
|
||||||
|
Loading…
Reference in New Issue
Block a user