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: else:
print('Sending follow request from ' + print('Sending follow request from ' +
followerNickname + ' to ' + followingActor) followerNickname + ' to ' + followingActor)
if not self.server.signingPrivateKeyPem:
print('Sending follow request with no signing key')
sendFollowRequest(self.server.session, sendFollowRequest(self.server.session,
baseDir, followerNickname, baseDir, followerNickname,
domain, port, domain, port,

View File

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