mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-10 07:34:44 +00:00
Fix error logging.
This commit is contained in:
parent
fa92d59448
commit
e13a479362
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import mimetypes
|
|||
import tempfile
|
||||
from distutils.spawn import find_executable
|
||||
|
||||
from . import log, LOG_CHECK
|
||||
|
||||
def write_file (filename, content, backup=False, callback=None):
|
||||
"""Overwrite a possibly existing file with new content. Do this
|
||||
|
|
@ -188,7 +189,7 @@ def init_mimedb():
|
|||
try:
|
||||
mimedb = mimetypes.MimeTypes(strict=False)
|
||||
except StandardError, msg:
|
||||
log_error("could not initialize MIME database: %s" % msg)
|
||||
log.error(LOG_CHECK, "could not initialize MIME database: %s" % msg)
|
||||
return
|
||||
# For Opera bookmark files (opera6.adr)
|
||||
add_mimetype(mimedb, 'text/plain', '.adr')
|
||||
|
|
|
|||
Loading…
Reference in a new issue