Less verbose

merge-requests/30/head
Bob Mottram 2021-03-14 19:39:00 +00:00
parent a4b7b921de
commit f074349ab2
2 changed files with 4 additions and 2 deletions

View File

@ -13941,6 +13941,7 @@ class PubServer(BaseHTTPRequestHandler):
"editblogpost", "newreminder", "newevent") "editblogpost", "newreminder", "newevent")
for currPostType in postTypes: for currPostType in postTypes:
if not authorized: if not authorized:
if self.server.debug:
print('POST was not authorized') print('POST was not authorized')
break break

View File

@ -2868,6 +2868,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
time.sleep(1) time.sleep(1)
if not pubKey: if not pubKey:
if debug:
print('Queue: public key could not be obtained from ' + keyId) print('Queue: public key could not be obtained from ' + keyId)
if os.path.isfile(queueFilename): if os.path.isfile(queueFilename):
os.remove(queueFilename) os.remove(queueFilename)