fix crash when there isn't any photos on a profile
This commit is contained in:
parent
a32dfeb412
commit
4edeba3d62
2 changed files with 6 additions and 1 deletions
|
|
@ -230,7 +230,8 @@ class StandardBrowser(mechanize.Browser):
|
|||
else:
|
||||
return None
|
||||
except (mechanize.BrowserStateError, BrowserRetry):
|
||||
self.home()
|
||||
if hasattr(self, 'home'):
|
||||
self.home()
|
||||
return mechanize.Browser.open(self, *args, **kwargs)
|
||||
|
||||
def get_exception(self, e):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue