From 8f79219c88626f8e685eec15179593f3f1833756 Mon Sep 17 00:00:00 2001 From: Corentin Falcone Date: Fri, 7 Oct 2022 11:19:33 +0200 Subject: [PATCH] Fix JsonDecodError on python 2.7 --- ckanext/idgotheme/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/idgotheme/plugin.py b/ckanext/idgotheme/plugin.py index 58cdb26..fc56b7b 100644 --- a/ckanext/idgotheme/plugin.py +++ b/ckanext/idgotheme/plugin.py @@ -174,7 +174,7 @@ def get_ihm_settings(): # RĂ©sout #8789 avec try..except try: data.update(r.json()) - except json.decoder.JSONDecodeError: + except Exception: pass return data