Skip to content

Commit 9e7fac1

Browse files
committed
bug fix: avoid possible removal of directories
1 parent c27eb05 commit 9e7fac1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

plogical/backupUtilities.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -378,15 +378,15 @@ def startBackup(tempStoragePath, backupName, backupPath, metaPath=None):
378378
print('1,None')
379379

380380
except BaseException as msg:
381-
try:
382-
os.remove(os.path.join(backupPath, backupName + ".tar.gz"))
383-
except:
384-
pass
385-
386-
try:
387-
rmtree(tempStoragePath)
388-
except:
389-
pass
381+
# try:
382+
# os.remove(os.path.join(backupPath, backupName + ".tar.gz"))
383+
# except:
384+
# pass
385+
#
386+
# try:
387+
# rmtree(tempStoragePath)
388+
# except:
389+
# pass
390390

391391
status = os.path.join(backupPath, 'status')
392392
logging.CyberCPLogFileWriter.statusWriter(status, "Aborted, " + str(msg) + ".[365] [5009]")

0 commit comments

Comments
 (0)