Continue even if file exists

master
Bob Mottram 2019-08-18 13:06:08 +01:00
parent 8d4d09f047
commit f8efb37c6e
1 changed files with 5 additions and 5 deletions

View File

@ -229,11 +229,11 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
handle=nickname+'@'+domain handle=nickname+'@'+domain
destination=baseDir+'/accounts/'+handle+'/inbox/'+postId.replace('/','#')+'.json' destination=baseDir+'/accounts/'+handle+'/inbox/'+postId.replace('/','#')+'.json'
if os.path.isfile(destination): #if os.path.isfile(destination):
if debug: # if debug:
print(destination) # print(destination)
print('DEBUG: inbox item already exists') # print('DEBUG: inbox item already exists')
return None # return None
filename=inboxQueueDir+'/'+postId.replace('/','#')+'.json' filename=inboxQueueDir+'/'+postId.replace('/','#')+'.json'
sharedInboxItem=False sharedInboxItem=False