Commit f7cd0abc authored by Florent Fourcot's avatar Florent Fourcot

Remove import of browser1 in BaseApplication

parent 4a9cee11
......@@ -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.
"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment