Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 388eca02 authored by Mathieu Giraud's avatar Mathieu Giraud

tools/should.py: fix compatibility with Python 3.4 on 'j0:' tests

fix #4672
see https://gitlab.bioinfo-diag.fr/vidjil/should/-/issues/63
as in https://github.com/GNS3/gns3-server/issues/847
parent 35efa87f
Pipeline #211007 passed with stages
in 105 minutes and 20 seconds
......@@ -744,7 +744,7 @@ class TestCase(TestCaseAbstract):
else:
self.count = 1
except (json.decoder.JSONDecodeError, KeyError):
except (ValueError, KeyError):
# No json, or non-existent key: count is 0
self.json_data = JSON_KEY_NOT_FOUND
self.count = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment