From 7a1e2de49f7b59c7445659fc898e7c534d46b7ad Mon Sep 17 00:00:00 2001 From: Nathan Henrie <n8henrie@users.noreply.github.com> Date: Tue, 19 Jul 2016 22:51:38 -0600 Subject: [PATCH] Don't overwrite the config directory (#2570) Closes #2566 The `else` seems to have been an error and was overwriting a non-default config directory with the default location. --- homeassistant/scripts/db_migrator.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/homeassistant/scripts/db_migrator.py b/homeassistant/scripts/db_migrator.py index dfe31be7684..3ce26014c05 100644 --- a/homeassistant/scripts/db_migrator.py +++ b/homeassistant/scripts/db_migrator.py @@ -83,8 +83,6 @@ def run(args): print(('Fatal Error: Specified configuration directory does ' 'not exist {} ').format(config_dir)) return 1 - else: - config_dir = config_util.get_default_config_dir() src_db = '{}/home-assistant.db'.format(config_dir) dst_db = '{}/home-assistant_v2.db'.format(config_dir)