From 80f742110b1c00868a1747fcb185526813dfffa3 Mon Sep 17 00:00:00 2001 From: Craig Hornsby Date: Wed, 6 Jun 2018 13:51:49 -0400 Subject: [PATCH] Starting mylar with --backup would cause an exception I tried to start Mylar with the --backup switch, but it caused an unhandled exception. So I updated the config_file to use the mylar.CONFIG_FILE, similar to the mylar.DB_FILE that is also backed up. Result: Starting Mylar with the --backup switch now copies the database and config files to the ./backup directory, as expected. Renaming existing files if necessary. --- Mylar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mylar.py b/Mylar.py index 33a71827..f2cdbdcd 100755 --- a/Mylar.py +++ b/Mylar.py @@ -194,7 +194,7 @@ def main(): back = os.path.join(backupdir, 'mylar.db') back_1 = os.path.join(backupdir, 'mylar.db.1') else: - ogfile = config_file + ogfile = mylar.CONFIG_FILE back = os.path.join(backupdir, 'config.ini') back_1 = os.path.join(backupdir, 'config.ini.1')