From 7918aae819ed8e308d037ca0bcd1cedd31a9a461 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sat, 1 Aug 2009 19:25:26 +0200 Subject: [PATCH] Add error handling for socket timeouts --- urlwatch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/urlwatch b/urlwatch index 2a5596b..8aa39f6 100755 --- a/urlwatch +++ b/urlwatch @@ -259,6 +259,11 @@ if __name__ == '__main__': log.error('got IOError while loading url: %s' % error) if display_errors: details += foutput('error', url, error, summary) + except socket.timeout, error: + log.error('got timeout while loading url: %s' % error) + if display_errors: + details += foutput('error', url, error, summary) + count += 1 end = datetime.datetime.now() -- 2.11.4.GIT