comment.form logger.exception -> logger.error

This commit is contained in:
nitely 2017-10-10 13:55:17 -03:00
parent eee18b2b81
commit 94d7b2975b

View File

@ -24,7 +24,12 @@ logger = logging.getLogger(__name__)
try:
import magic
except ImportError as err:
logger.exception(err)
# There used to be a logger.exception here but
# the traceback made things confusing when an unhandled was raised
logger.warning(
'Can\'t load python-magic. '
'Is libmagic installed?')
logger.error(err)
magic = None