Commit 63398eba authored by Romain Bignon's avatar Romain Bignon

fix when website is offline

parent 1838cf95
......@@ -21,7 +21,7 @@ from __future__ import with_statement
from weboob.capabilities.geolocip import ICapGeolocIp, IpLocation
from weboob.tools.backend import BaseBackend
from weboob.tools.browser import BaseBrowser
from weboob.tools.browser import BaseBrowser, BrowserUnavailable
__all__ = ['GeolocIpBackend']
......@@ -44,6 +44,9 @@ class GeolocIpBackend(BaseBackend, ICapGeolocIp):
content = self.browser.readurl('http://www.geolocip.com/?s[ip]=%s&commit=locate+IP!' % str(ipaddr))
if content is None:
raise BrowserUnavailable()
tab = {}
last_line = ''
line = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment