Skip to content

Commit

Permalink
Merge pull request #10 from os-autoinst/json
Browse files Browse the repository at this point in the history
Fix json parsing error handling when simplejson is used
  • Loading branch information
asdil12 authored Mar 4, 2024
2 parents 1d45199 + 6fda68a commit b4a27f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fetch_openqa_bugs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for bug_dbid, bugid in bugs.items():
client.openqa_request("PUT", "bugs/%s" % bug_dbid, data=issue.get_dict())
except (AssertionError, requests.exceptions.ReadTimeout) as e:
print(" -> ERROR: %s" % e)
except (json.decoder.JSONDecodeError) as e:
except (json.decoder.JSONDecodeError, simplejson.errors.JSONDecodeError) as e:
print(" -> ERROR: %s: JSON: %s…" % e, sys.last_value.doc[:50])
except Exception as e:
print(f"Exception occured while fetching {bugid}", file=sys.stderr)
Expand Down

0 comments on commit b4a27f5

Please sign in to comment.