[browser] catch HTTPErrors during load_state
This commit is contained in:
parent
cd358c1239
commit
bc1746214c
1 changed files with 4 additions and 1 deletions
|
|
@ -637,7 +637,10 @@ class PagesBrowser(DomainBrowser):
|
||||||
def load_state(self, state):
|
def load_state(self, state):
|
||||||
super(PagesBrowser, self).load_state(state)
|
super(PagesBrowser, self).load_state(state)
|
||||||
if 'url' in state:
|
if 'url' in state:
|
||||||
self.location(state['url'])
|
try:
|
||||||
|
self.location(state['url'])
|
||||||
|
except requests.exceptions.HTTPError:
|
||||||
|
pass
|
||||||
|
|
||||||
def dump_state(self):
|
def dump_state(self):
|
||||||
state = super(PagesBrowser, self).dump_state()
|
state = super(PagesBrowser, self).dump_state()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue