mitigate json decoder error with newer requests libraries #251

This commit is contained in:
ricardo.bartels@telekom.de
2022-11-27 14:11:20 +01:00
parent c1b9ec071d
commit ef4abd9721

View File

@@ -314,7 +314,7 @@ class NetBoxHandler:
try:
result = response.json()
except json.decoder.JSONDecodeError:
except (json.decoder.JSONDecodeError, requests.exceptions.JSONDecodeError):
pass
if response.status_code == 200: