def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):
raise IOError, ('http error', errcode, "Authentication required ", headers)
+ def http_error_default(self, url, fp, errcode, errmsg, headers):
+ if fp:
+ void = fp.read()
+ fp.close()
+ raise IOError, ('http error', errcode, errmsg, headers)
+
urllib._urlopener = MyURLopener()
except KeyboardInterrupt:
return 0
+ except:
+ import traceback
+ traceback.print_exc()
+ bookmark.error = "Exception!"
+
finally:
self.finish_check_url(bookmark)