diff --git a/removeChannelsBeingTreated.py b/removeChannelsBeingTreated.py index 7dcb8bf..9f1df53 100644 --- a/removeChannelsBeingTreated.py +++ b/removeChannelsBeingTreated.py @@ -18,6 +18,8 @@ with open('nohup.out') as f: for threadId in threads: channelId = threads[threadId] print(threadId, channelId) - shutil.rmtree(path + channelId) - - + try: + shutil.rmtree(path + channelId) + os.remove(path + channelId + ".zip") + except: + pass