Improve MMS model loading exception handling
namannandan opened this issue · 0 comments
namannandan commented
Model loading could potentially fail silently because of the following exception handling:
try:
model_service.initialize(service.context)
# pylint: disable=broad-except
except Exception:
# noinspection PyBroadException
try:
sys.exc_clear()
# pylint: disable=broad-except
except Exception:
pass
This can be improved by logging the exception to assist with debugging.