mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Replace JSONDecodeError by ValueError (Python 3.4 compatibility)
Fix #847
This commit is contained in:
4 files changed
+4
-4
No files matched your search
@@ -227,7 +227,7 @@ async def main(loop):
|
||||
try:
|
||||
j = await error.response.json()
|
||||
die("%s %s invalid status %d:\n%s", error.method, error.path, error.response.status, json.dumps(j, indent=4))
|
||||
except (json.decoder.JSONDecodeError, aiohttp.errors.ServerDisconnectedError):
|
||||
except (ValueError, aiohttp.errors.ServerDisconnectedError):
|
||||
die("%s %s invalid status %d", error.method, error.path, error.response.status)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user