Show exception if json-ld signature fails

main
Bob Mottram 2020-10-11 15:08:16 +01:00
parent d3fc053df9
commit a43e6d6405
1 changed files with 4 additions and 4 deletions

View File

@ -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