Skip to content

Commit

Permalink
Revert the way we check an error response (how did this happen?)
Browse files Browse the repository at this point in the history
  • Loading branch information
agates committed Aug 11, 2022
1 parent 42256be commit 93f2f4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/podping_hivewriter/podping_hivewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,8 @@ async def failure_retry(
# Test if we have a well-formed Hive error message
logging.exception(ex)
if (
ex.raw_body.get("error")
and ex.raw_body["error"].get("data")
and ex.raw_body["error"]["data"].get("name")
ex.raw_body["error"]["data"]["name"]
== "tx_missing_posting_auth"
):
if logging.DEBUG >= logging.root.level:
for iri in iri_set:
Expand Down

0 comments on commit 93f2f4d

Please sign in to comment.