mirror of https://gitlab.com/bashrc2/epicyon
Continue even if file exists
parent
8d4d09f047
commit
f8efb37c6e
10
inbox.py
10
inbox.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue