mirror of
https://github.com/bb-Ricardo/netbox-sync.git
synced 2026-01-20 07:50:16 -06:00
mitigate json decoder error with newer requests libraries #251
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user