Commit 36fb1dc6 authored by Patrik Dufresne's avatar Patrik Dufresne

Do not disable file restore when status is not ok.

We need to allow file restore even if the status is not 'ok'. Either if
a backup is in progress or if the previous backup failed. The restore
may fail, but at least we tried to do something.
parent 909e8641
......@@ -84,9 +84,9 @@ class RestorePage(page_main.MainPage):
raise cherrypy.HTTPError(400, _("Invalid date."))
# Get if backup in progress
status = repo_obj.status
if status[0] != 'ok':
raise cherrypy.HTTPError(500, _(status[1] + ' ' + _("""Restores are disabled.""")))
# status = repo_obj.status
# if status[0] != 'ok':
# raise cherrypy.HTTPError(500, _(status[1] + ' ' + _("""Restores are disabled.""")))
# Determine the kind.
kind = kind or 'zip'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment