mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-03 06:30:23 +00:00
Catch log output start errors.
This commit is contained in:
parent
6ff89e9e8c
commit
27702ddbac
1 changed files with 6 additions and 1 deletions
|
|
@ -116,10 +116,15 @@ def check_urls (aggregate):
|
|||
visit_loginurl(aggregate)
|
||||
except Exception as msg:
|
||||
log.warn(LOG_CHECK, _("Error using login URL: %(msg)s.") % \
|
||||
{'msg': str(msg)})
|
||||
dict(msg=msg))
|
||||
raise
|
||||
try:
|
||||
aggregate.logger.start_log_output()
|
||||
except Exception as msg:
|
||||
log.error(LOG_CHECK, _("Error starting log output: %(msg)s.") % \
|
||||
dict(msg=msg))
|
||||
raise
|
||||
try:
|
||||
if not aggregate.urlqueue.empty():
|
||||
aggregate.start_threads()
|
||||
check_url(aggregate)
|
||||
|
|
|
|||
Loading…
Reference in a new issue