From 72c2e71667278acbbc169a0453e469f37a15261d Mon Sep 17 00:00:00 2001 From: checktheroads Date: Tue, 11 Jun 2019 21:23:53 -0700 Subject: [PATCH] moved missing import statment to try block --- manage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manage.py b/manage.py index 946902c..9d20f44 100755 --- a/manage.py +++ b/manage.py @@ -497,7 +497,9 @@ def migrateconfig(): """Copies example configuration files to usable config files""" try: import hyperglass - + except ImportError as error_exception: + click.secho(f"Error importing hyperglass:\n{error_exception}") + try: click.secho("Migrating example config files...", fg="black") hyperglass_root = os.path.dirname(hyperglass.__file__) config_dir = os.path.join(hyperglass_root, "configuration/")