Exit loop if no keyId

main
Bob Mottram 2020-04-16 10:27:22 +01:00
parent eb7ed65adb
commit d81c985e44
1 changed files with 2 additions and 5 deletions

View File

@ -2407,11 +2407,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
if not keyId: if not keyId:
print('Queue: No keyId in signature: ' + print('Queue: No keyId in signature: ' +
queueJson['httpHeaders']['signature']) queueJson['httpHeaders']['signature'])
if os.path.isfile(queueFilename): pubKey = None
os.remove(queueFilename) break
if len(queue) > 0:
queue.pop(0)
continue
pubKey = \ pubKey = \
getPersonPubKey(baseDir, session, keyId, getPersonPubKey(baseDir, session, keyId,