remove unrelated files and changes as best as possible

This commit is contained in:
Steffen Schwebel
2021-06-02 09:39:39 +02:00
parent 083a023e57
commit 0505b934a1
4 changed files with 5 additions and 140 deletions

View File

@ -104,13 +104,6 @@ def fetch_json(remote_url,
data = None
try:
data = json.loads(r.content.decode('utf-8'))
except UnicodeDecodeError:
# If the decoding fails, switch to slower but probably working .json()
try:
logging.warning("UTF-8 content.decode failed, switching to slower .json method")
data = r.json()
except Exception as e:
raise e
except Exception as e:
raise RuntimeError(
'Error while loading JSON data from {0}'.format(remote_url)) from e