forked from mirrors/thatmattlove-hyperglass
moved missing import statment to try block
This commit is contained in:
parent
6c928f8956
commit
72c2e71667
1 changed files with 3 additions and 1 deletions
|
|
@ -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/")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue