diff --git a/app/classes/shared/cmd.py b/app/classes/shared/cmd.py index 80a1b08b..7d2428b1 100644 --- a/app/classes/shared/cmd.py +++ b/app/classes/shared/cmd.py @@ -15,8 +15,8 @@ try: import requests except ModuleNotFoundError as e: - logger.critical("Import Error: Unable to load {} module".format(e, e.name)) - console.critical("Import Error: Unable to load {} module".format(e, e.name)) + logger.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) + console.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) sys.exit(1) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index e1517084..1610869f 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -27,8 +27,8 @@ try: from argon2 import PasswordHasher except ModuleNotFoundError as e: - logger.critical("Import Error: Unable to load {} module".format(e, e.name)) - console.critical("Import Error: Unable to load {} module".format(e, e.name)) + logger.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) + console.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) sys.exit(1) class Helpers: diff --git a/app/classes/shared/tasks.py b/app/classes/shared/tasks.py index 86717824..bc572379 100644 --- a/app/classes/shared/tasks.py +++ b/app/classes/shared/tasks.py @@ -20,8 +20,8 @@ try: import schedule except ModuleNotFoundError as e: - logger.critical("Import Error: Unable to load {} module".format(e, e.name)) - console.critical("Import Error: Unable to load {} module".format(e, e.name)) + logger.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) + console.critical("Import Error: Unable to load {} module".format(e.name), exc_info=True) sys.exit(1) scheduler_intervals = { 'seconds',