fix
This commit is contained in:
parent
d61d26dda9
commit
d5c4304099
2 changed files with 3 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
"""
|
||||
|
||||
import ClientForm
|
||||
from mechanize import FormNotFoundError
|
||||
from weboob.tools.browser import BasePage
|
||||
|
||||
class PornPage(BasePage):
|
||||
|
|
@ -27,5 +28,5 @@ class PornPage(BasePage):
|
|||
self.browser.select_form(nr=0)
|
||||
self.browser.submit(name='user_choice')
|
||||
return False
|
||||
except ClientForm.ControlNotFoundError, e:
|
||||
except (ClientForm.ControlNotFoundError,FormNotFoundError):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue