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
@@ -234,7 +234,7 @@ class VirtualBoxGNS3VM(BaseGNS3VM):
|
||||
if resp:
|
||||
try:
|
||||
json_data = yield from resp.json()
|
||||
except json.decoder.JSONDecodeError:
|
||||
except ValueError:
|
||||
pass
|
||||
resp.close()
|
||||
|
||||
|
||||
Reference in new issue
Block a user