Remove import of browser1 in BaseApplication
This commit is contained in:
parent
4a9cee1126
commit
f7cd0abc3b
3 changed files with 8 additions and 8 deletions
|
|
@ -352,7 +352,7 @@ class BaseApplication(object):
|
|||
if not self.options.debug and not self.options.save_responses:
|
||||
warnings.simplefilter('ignore', category=ConversionWarning)
|
||||
try:
|
||||
from weboob.tools.browser.browser import FormFieldConversionWarning
|
||||
from weboob.tools.exceptions import FormFieldConversionWarning
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ from contextlib import closing
|
|||
from gzip import GzipFile
|
||||
import warnings
|
||||
|
||||
from weboob.tools.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserPasswordExpired, BrowserForbidden, BrowserBanned, BrowserHTTPNotFound, BrowserHTTPError
|
||||
from weboob.tools.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserPasswordExpired, BrowserForbidden, BrowserBanned, BrowserHTTPNotFound, BrowserHTTPError, FormFieldConversionWarning
|
||||
from weboob.tools.decorators import retry
|
||||
from weboob.tools.log import getLogger
|
||||
from weboob.tools.mech import ClientForm
|
||||
|
|
@ -100,12 +100,6 @@ class BrokenPageError(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class FormFieldConversionWarning(UserWarning):
|
||||
"""
|
||||
A value has been set to a form's field and has been implicitly converted.
|
||||
"""
|
||||
|
||||
|
||||
class BasePage(object):
|
||||
"""
|
||||
Base page
|
||||
|
|
|
|||
|
|
@ -48,3 +48,9 @@ class BrowserHTTPError(BrowserUnavailable):
|
|||
|
||||
class ParseError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class FormFieldConversionWarning(UserWarning):
|
||||
"""
|
||||
A value has been set to a form's field and has been implicitly converted.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue