From 5af97894f4d11fa769b8482b945bc94fb74aecee Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 16 Aug 2019 23:04:45 +0100 Subject: [PATCH] Check for filename --- inbox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inbox.py b/inbox.py index aa1c7996d..3efa7bda5 100644 --- a/inbox.py +++ b/inbox.py @@ -1001,6 +1001,9 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \ print('DEBUG: object capabilities passed') print('copy from '+queueFilename+' to '+destinationFilename) + if not os.path.isfile(destinationFilename): + return False + if messageJson.get('postNickname'): with open(destinationFilename, 'w') as fp: commentjson.dump(messageJson['post'], fp, indent=4, sort_keys=False)