diff --git a/urlbot.py b/urlbot.py index 928f3fd..8d3b186 100755 --- a/urlbot.py +++ b/urlbot.py @@ -22,7 +22,7 @@ def fetch_page(url): html_text = response.read(BUFSIZ) # ignore more than BUFSIZ response.close() return (0, html_text, response.headers) - except IOError as e: + except Exception as e: logger('warn', 'failed: ' + str(e)) return (1, str(e), 'dummy')