Private GIT

Skip to content
Snippets Groups Projects
Commit 070e1ba5 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Restore was only processed when console logging was enabled!

parent 83853d81
Branches
Tags
No related merge requests found
......@@ -295,15 +295,11 @@ class SickRage(object):
os.chdir(sickbeard.DATA_DIR)
# Check if we need to perform a restore first
try:
restoreDir = os.path.join(sickbeard.DATA_DIR, 'restore')
if self.consoleLogging and os.path.exists(restoreDir):
if self.restoreDB(restoreDir, sickbeard.DATA_DIR):
sys.stdout.write("Restore: restoring DB and config.ini successful...\n")
else:
sys.stdout.write("Restore: restoring DB and config.ini FAILED!\n")
except Exception:
sys.stdout.write("Restore: restoring DB and config.ini FAILED!\n")
if os.path.exists(restoreDir):
success = self.restoreDB(restoreDir, sickbeard.DATA_DIR)
if self.consoleLogging:
sys.stdout.write("Restore: restoring DB and config.ini %s!\n" % ("FAILED", "SUCCESSFUL")[success])
# Load the config and publish it to the sickbeard package
if self.consoleLogging and not os.path.isfile(sickbeard.CONFIG_FILE):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment