From 27702ddbac62ec54dee9089b8f66cf00a3551c73 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 9 Jul 2014 21:54:47 +0200 Subject: [PATCH] Catch log output start errors. --- linkcheck/director/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linkcheck/director/__init__.py b/linkcheck/director/__init__.py index eb5f0e04..542b3d5b 100644 --- a/linkcheck/director/__init__.py +++ b/linkcheck/director/__init__.py @@ -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)