Modify removeChannelsBeingTreated.py
to be more resilient against not existing files in the treatment process
This commit is contained in:
@@ -18,6 +18,8 @@ with open('nohup.out') as f:
|
|||||||
for threadId in threads:
|
for threadId in threads:
|
||||||
channelId = threads[threadId]
|
channelId = threads[threadId]
|
||||||
print(threadId, channelId)
|
print(threadId, channelId)
|
||||||
shutil.rmtree(path + channelId)
|
try:
|
||||||
|
shutil.rmtree(path + channelId)
|
||||||
|
os.remove(path + channelId + ".zip")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
Reference in New Issue
Block a user