Commit 012c7486 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Vincent A

imm-o-matic: Don't crash without simplejson

parent f4885bc5
......@@ -136,7 +136,7 @@ def getdetails():
print ("Fetching details for %s"%(i,))
try:
d = json.load(os.popen('flatboob info -f json %s' % (i,)))
except json.decoder.JSONDecodeError:
except ValueError:
continue
try:
d = d[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