[browser] catch HTTPErrors during load_state

This commit is contained in:
Bezleputh 2015-03-13 17:28:03 +01:00
commit bc1746214c

View file

@ -637,7 +637,10 @@ class PagesBrowser(DomainBrowser):
def load_state(self, state):
super(PagesBrowser, self).load_state(state)
if 'url' in state:
self.location(state['url'])
try:
self.location(state['url'])
except requests.exceptions.HTTPError:
pass
def dump_state(self):
state = super(PagesBrowser, self).dump_state()