Check for filename

master
Bob Mottram 2019-08-16 23:04:45 +01:00
parent fb5198d2f6
commit 5af97894f4
1 changed files with 3 additions and 0 deletions

View File

@ -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)