diff options
Diffstat (limited to 'irkerhook.py')
-rwxr-xr-x | irkerhook.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/irkerhook.py b/irkerhook.py index 9768eac..ce19446 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -95,12 +95,14 @@ class Commit: self.url = webview else: self.url = webview - except IOError as e: + except urllib2.HTTPError as e: if e.code == 401: # Authentication error, so we assume the view is valid self.url = webview else: self.url = "" + except IOError: + self.url = "" res = self.template % self.__dict__ return unicode(res, 'UTF-8') if not isinstance(res, unicode) else res |