Skip to content

Commit 60007ba

Browse files
committed
bug fix: backup engine
1 parent c597894 commit 60007ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backup/backupManager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ def backupStatus(self, userID = None, data = None):
178178
try:
179179
command = "sudo cat " + backupFileNamePath
180180
fileName = ProcessUtilities.outputExecutioner(command, domain.externalApp)
181+
if fileName.find('No such file or directory') > -1:
182+
final_json = json.dumps({'backupStatus': 0, 'error_message': "None", "status": 0, "abort": 0})
183+
return HttpResponse(final_json)
181184
except:
182185
fileName = "Fetching.."
183186

0 commit comments

Comments
 (0)