Skip to content

Commit

Permalink
Fix json parsing error handling when simplejson is used
Browse files Browse the repository at this point in the history
Ticket: https://progress.opensuse.org/issues/156514

Co-authored-by: Marius Kittler <[email protected]>
  • Loading branch information
asdil12 and Martchus committed Mar 4, 2024
1 parent 1d45199 commit 6fda68a
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 6fda68a

Please sign in to comment.