From a43e6d64055c270db52397fc3a82c35cb480e0f1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Oct 2020 15:08:16 +0100 Subject: [PATCH] Show exception if json-ld signature fails --- posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/posts.py b/posts.py index 441802ac..cddd86f1 100644 --- a/posts.py +++ b/posts.py @@ -1760,8 +1760,8 @@ def sendPost(projectVersion: str, try: signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem) postJsonObject = signedPostJsonObject - except BaseException: - print('WARN: failed to JSON-LD sign post') + except Exception as e: + print('WARN: failed to JSON-LD sign post, ' + str(e)) pass # convert json to string so that there are no @@ -2099,8 +2099,8 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str, try: signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem) postJsonObject = signedPostJsonObject - except BaseException: - print('WARN: failed to JSON-LD sign post') + except Exception as e: + print('WARN: failed to JSON-LD sign post, ' + str(e)) pass # convert json to string so that there are no