diff --git a/script/execute/execute.py b/script/execute/execute.py index adb7c43..8ea3355 100644 --- a/script/execute/execute.py +++ b/script/execute/execute.py @@ -12,7 +12,7 @@ import time try: import humanize -except ImportError: +except ModuleNotFoundError as e: humanize = None cst_venv_erplibre = ".venv.erplibre" diff --git a/script/todo/todo.py b/script/todo/todo.py index 8ebb63f..7f3ffce 100755 --- a/script/todo/todo.py +++ b/script/todo/todo.py @@ -21,6 +21,7 @@ new_path = os.path.normpath( sys.path.append(new_path) from script.config import config_file +from script.execute import execute file_error_path = ".erplibre.error.txt" cst_venv_erplibre = ".venv.erplibre" @@ -56,7 +57,6 @@ try: # import rich import todo_upgrade from pykeepass import PyKeePass - except ModuleNotFoundError as e: humanize = None ENABLE_CRASH = True