Skip to content

Commit

Permalink
bug fix: backup engine
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Sep 11, 2019
1 parent c597894 commit 60007ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backup/backupManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ def backupStatus(self, userID = None, data = None):
try:
command = "sudo cat " + backupFileNamePath
fileName = ProcessUtilities.outputExecutioner(command, domain.externalApp)
if fileName.find('No such file or directory') > -1:
final_json = json.dumps({'backupStatus': 0, 'error_message': "None", "status": 0, "abort": 0})
return HttpResponse(final_json)
except:
fileName = "Fetching.."

Expand Down

0 comments on commit 60007ba

Please sign in to comment.