Commit a1ffe04a authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

More sensible exceptions when importing

parent 74b0cf86
......@@ -17,6 +17,7 @@ import inspect
import sys
import imp
import logging
import traceback
import gevent
import json
......@@ -190,7 +191,8 @@ class Senpy(object):
except InvalidGitRepositoryError:
module._repo = None
except Exception as ex:
logger.debug("Exception importing {}: {}".format(filename, ex))
logger.error("Exception importing {}: {}".format(filename, ex))
logger.error("Trace: {}".format(traceback.format_exc()))
return None, None
return name, module
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment