fix: [internal] Better exception logging

pull/539/head
Jakub Onderka 2021-12-24 15:33:23 +01:00
parent e50ab6379f
commit 1f75b8f865
1 changed files with 2 additions and 2 deletions

View File

@ -41,14 +41,14 @@ try:
from .modules import * # noqa
HAS_PACKAGE_MODULES = True
except Exception as e:
print(e)
logging.exception(e)
HAS_PACKAGE_MODULES = False
try:
from .helpers import * # noqa
HAS_PACKAGE_HELPERS = True
except Exception as e:
print(e)
logging.exception(e)
HAS_PACKAGE_HELPERS = False
log = logging.getLogger('misp-modules')