Signing key warnings

main
Bob Mottram 2021-09-20 14:20:30 +01:00
parent 3ea3583436
commit d68f500455
2 changed files with 4 additions and 0 deletions

View File

@ -2745,6 +2745,8 @@ class PubServer(BaseHTTPRequestHandler):
else:
print('Sending follow request from ' +
followerNickname + ' to ' + followingActor)
if not self.server.signingPrivateKeyPem:
print('Sending follow request with no signing key')
sendFollowRequest(self.server.session,
baseDir, followerNickname,
domain, port,

View File

@ -318,6 +318,8 @@ def _getPersonBoxActor(session, baseDir: str, actor: str,
if personJson:
return personJson
print('Unable to get actor for ' + actor)
if not signingPrivateKeyPem:
print('No signing key provided when getting actor')
return None