From ea8ef8efd12e644c75f7f61ccc8ea6a5718e195a Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Tue, 8 Dec 2020 15:37:17 -0500 Subject: [PATCH] explain update failure --- hbc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbc b/hbc index ef4b1fb..ea49f21 100755 --- a/hbc +++ b/hbc @@ -244,8 +244,8 @@ def doupdate(conn, msgDict): try: code = codecs.decode(msgDict['code'],'base64').decode() csum = msgDict['csum'] - except: - fail = "csum/code missing" + except Exception as e: + fail = f"csum/code missing: {e}" if not fail: fail = doupdateone(code, csum)