mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Merge pull request #492 from Arthur-Milchior/print_json_decode_error
print json decode error message
This commit is contained in:
commit
78e9959e78
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ class AddonManager:
|
|||
try:
|
||||
with open(path, encoding="utf8") as f:
|
||||
return json.load(f)
|
||||
except:
|
||||
except json.JSONDecodeError as e:
|
||||
print(f"json error in add-on {dir}:\n{e}")
|
||||
return dict()
|
||||
|
||||
# in new code, use write_addon_meta() instead
|
||||
|
|
Loading…
Reference in a new issue