From 737f2dd967f21df40e8b9edb2b5cf42b0fca4d0d Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 28 Jul 2019 21:38:19 +0200 Subject: [PATCH] [fix] missing argument for translation string formatting --- moulinette/utils/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moulinette/utils/network.py b/moulinette/utils/network.py index 6620ba71..2be53841 100644 --- a/moulinette/utils/network.py +++ b/moulinette/utils/network.py @@ -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