forked from indymedia/epicyon
Show exception if json-ld signature fails
parent
d3fc053df9
commit
a43e6d6405
8
posts.py
8
posts.py
|
@ -1760,8 +1760,8 @@ def sendPost(projectVersion: str,
|
||||||
try:
|
try:
|
||||||
signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem)
|
signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem)
|
||||||
postJsonObject = signedPostJsonObject
|
postJsonObject = signedPostJsonObject
|
||||||
except BaseException:
|
except Exception as e:
|
||||||
print('WARN: failed to JSON-LD sign post')
|
print('WARN: failed to JSON-LD sign post, ' + str(e))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# convert json to string so that there are no
|
# convert json to string so that there are no
|
||||||
|
@ -2099,8 +2099,8 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str,
|
||||||
try:
|
try:
|
||||||
signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem)
|
signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem)
|
||||||
postJsonObject = signedPostJsonObject
|
postJsonObject = signedPostJsonObject
|
||||||
except BaseException:
|
except Exception as e:
|
||||||
print('WARN: failed to JSON-LD sign post')
|
print('WARN: failed to JSON-LD sign post, ' + str(e))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# convert json to string so that there are no
|
# convert json to string so that there are no
|
||||||
|
|
Loading…
Reference in New Issue