Log errors during module and model initialization

This commit is contained in:
cmdr2
2023-04-19 16:20:08 +05:30
parent 7c75a61700
commit 35c75115de
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ a custom index URL depending on the platform.
import os
from importlib.metadata import version as pkg_version
import platform
import traceback
os_name = platform.system()
@ -58,6 +59,7 @@ def init():
try:
install(module_name, latest_version)
except:
traceback.print_exc()
fail(module_name)
print(f"{module_name}: {version(module_name)}")