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:
print('Queue: No keyId in signature: ' +
queueJson['httpHeaders']['signature'])
if os.path.isfile(queueFilename):
os.remove(queueFilename)
if len(queue) > 0:
queue.pop(0)
continue
pubKey = None
break
pubKey = \
getPersonPubKey(baseDir, session, keyId,