mirror of
https://github.com/QingdaoU/Spirit.git
synced 2024-12-28 15:32:12 +00:00
comment.form logger.exception -> logger.error
This commit is contained in:
parent
eee18b2b81
commit
94d7b2975b
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user