mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] missing argument for translation string formatting
This commit is contained in:
parent
2403ee1b7d
commit
737f2dd967
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ def download_json(url, timeout=30, expected_status_code=200):
|
|||
# Try to load json to check if it's syntaxically correct
|
||||
try:
|
||||
loaded_json = json.loads(text)
|
||||
except ValueError:
|
||||
raise MoulinetteError('corrupted_json', ressource=url)
|
||||
except ValueError as e:
|
||||
raise MoulinetteError('corrupted_json', ressource=url, error=e)
|
||||
|
||||
return loaded_json
|
||||
|
|
Loading…
Add table
Reference in a new issue