From 93f2f4d2d342f45cab5fd0bcecb957c2aebe4eb0 Mon Sep 17 00:00:00 2001 From: Alecks Gates Date: Thu, 11 Aug 2022 11:43:27 -0500 Subject: [PATCH] Revert the way we check an error response (how did this happen?) --- src/podping_hivewriter/podping_hivewriter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/podping_hivewriter/podping_hivewriter.py b/src/podping_hivewriter/podping_hivewriter.py index 7124b77..86f5491 100644 --- a/src/podping_hivewriter/podping_hivewriter.py +++ b/src/podping_hivewriter/podping_hivewriter.py @@ -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: