Merge branch 'v2.1.1' into v2.1.1-usman

This commit is contained in:
Usman Nasir
2021-08-20 15:19:43 +05:00

View File

@@ -388,15 +388,15 @@ class backupUtilities:
print('1,None')
except BaseException as msg:
try:
os.remove(os.path.join(backupPath, backupName + ".tar.gz"))
except:
pass
try:
rmtree(tempStoragePath)
except:
pass
# try:
# os.remove(os.path.join(backupPath, backupName + ".tar.gz"))
# except:
# pass
#
# try:
# rmtree(tempStoragePath)
# except:
# pass
status = os.path.join(backupPath, 'status')
logging.CyberCPLogFileWriter.statusWriter(status, "Aborted, " + str(msg) + ".[365] [5009]")