mirror of https://gitlab.com/bashrc2/epicyon
Check for filename
parent
fb5198d2f6
commit
5af97894f4
3
inbox.py
3
inbox.py
|
@ -1001,6 +1001,9 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
||||||
print('DEBUG: object capabilities passed')
|
print('DEBUG: object capabilities passed')
|
||||||
print('copy from '+queueFilename+' to '+destinationFilename)
|
print('copy from '+queueFilename+' to '+destinationFilename)
|
||||||
|
|
||||||
|
if not os.path.isfile(destinationFilename):
|
||||||
|
return False
|
||||||
|
|
||||||
if messageJson.get('postNickname'):
|
if messageJson.get('postNickname'):
|
||||||
with open(destinationFilename, 'w') as fp:
|
with open(destinationFilename, 'w') as fp:
|
||||||
commentjson.dump(messageJson['post'], fp, indent=4, sort_keys=False)
|
commentjson.dump(messageJson['post'], fp, indent=4, sort_keys=False)
|
||||||
|
|
Loading…
Reference in New Issue