Move exceptions to weboob.core.exceptions
This commit is contained in:
parent
a019819f9d
commit
9949bbf919
35 changed files with 34 additions and 34 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
|
||||
from .pages import LoginPage, AccountsPage
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
from weboob.browser2 import LoginBrowser, need_login, URL
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
|
||||
from .pages import LoginPage, IndexPage, AccountsPage, OperationsPage
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ from weboob.browser2.filters.standard import CleanText, Regexp, CleanDecimal, En
|
|||
from weboob.browser2.filters.html import Attr
|
||||
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard, VirtKeyboardError
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.core.exceptions import ParseError
|
||||
|
||||
|
||||
class Transaction(FrenchTransaction):
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
|
||||
from .pages import LoginPage, HomePage, TransactionsPage
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from weboob.capabilities.bank import Account, Transaction
|
|||
from weboob.tools.backend import Module, BackendConfig
|
||||
from weboob.tools.value import ValueBackendPassword
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword, ParseError
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword, ParseError
|
||||
from weboob.browser2 import Browser
|
||||
|
||||
from re import match, compile, sub
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ from datetime import datetime, timedelta
|
|||
|
||||
from weboob.tools.compat import basestring
|
||||
from weboob.browser2 import LoginBrowser, URL, Wget, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from weboob.capabilities.bank import Transfer, TransferError
|
||||
|
||||
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, \
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from weboob.browser2.page import HTMLPage, method, FormNotFound, LoggedPage
|
|||
from weboob.browser2.elements import ListElement, ItemElement, SkipItem
|
||||
from weboob.browser2.filters.standard import Filter, Env, CleanText, CleanDecimal, Field, TableCell
|
||||
from weboob.browser2.filters.html import Link
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from weboob.capabilities import NotAvailable
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
from urlparse import urlparse, parse_qs
|
||||
|
||||
from weboob.browser2 import LoginBrowser, URL, HTMLPage
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
|
||||
|
||||
class GoogleLoginPage(HTMLPage):
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from .pages import HomePage, LoginPage, HistoryPage, DetailsPage
|
||||
|
||||
__all__ = ['Freemobile']
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
|
||||
from .pages import LoginPage, LoginErrorPage, AvoirPage, OperationsTraiteesPage, OperationsFuturesPage
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import ssl
|
|||
from datetime import timedelta
|
||||
|
||||
from weboob.tools.date import LinearDateGuesser
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from .pages import AccountsPage, CBOperationPage, CPTOperationPage, LoginPage
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from weboob.capabilities import NotAvailable
|
|||
from weboob.capabilities.bank import Account
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from weboob.browser2.elements import ListElement, ItemElement, SkipItem
|
||||
from weboob.browser2.page import HTMLPage, method, LoggedPage, pagination
|
||||
from weboob.browser2.filters.standard import Filter, Env, CleanText, CleanDecimal, Field, DateGuesser, TableCell
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
import hashlib
|
||||
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword, ParseError
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword, ParseError
|
||||
from weboob.capabilities.bank import Account, TransferError
|
||||
|
||||
from .pages import AccountsList, LoginPage, TitrePage, TitreHistory,\
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
from StringIO import StringIO
|
||||
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from weboob.tools.captcha.virtkeyboard import VirtKeyboard
|
||||
from weboob.browser2.page import HTMLPage
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
from weboob.capabilities.bank import Account
|
||||
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
|
||||
from .pages import LoginPage, IndexPage, OperationsPage
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard, VirtKeyboardEr
|
|||
from weboob.browser2.page import HTMLPage, method, LoggedPage, pagination
|
||||
from weboob.browser2.elements import ListElement, ItemElement
|
||||
from weboob.browser2.filters.standard import Env, CleanDecimal
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.core.exceptions import ParseError
|
||||
|
||||
|
||||
class Transaction(FrenchTransaction):
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from weboob.capabilities.paste import BasePaste, PasteNotFound
|
|||
from weboob.browser2.filters.standard import CleanText, DateTime, Env, RawText, Regexp
|
||||
from weboob.browser2.page import HTMLPage, method, PagesBrowser, URL
|
||||
from weboob.browser2.elements import ItemElement
|
||||
from weboob.tools.exceptions import BrowserHTTPNotFound
|
||||
from weboob.core.exceptions import BrowserHTTPNotFound
|
||||
|
||||
|
||||
class Spam(Exception):
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ from weboob.browser2.elements import ItemElement
|
|||
from weboob.browser2.filters.standard import Base, CleanText, DateTime, Env, Filter, FilterError, RawText
|
||||
from weboob.browser2.filters.html import Attr
|
||||
from weboob.browser2.page import method, RawPage
|
||||
from weboob.tools.exceptions import BrowserHTTPNotFound, BrowserIncorrectPassword, BrowserUnavailable
|
||||
from weboob.core.exceptions import BrowserHTTPNotFound, BrowserIncorrectPassword, BrowserUnavailable
|
||||
|
||||
|
||||
class PastebinPaste(BasePaste):
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from .pages import HomePage, LoginPage, HistoryPage, BillsPage, ErrorPage
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from weboob.tools.exceptions import BrowserBanned
|
||||
from weboob.core.exceptions import BrowserBanned
|
||||
from weboob.browser2.page import HTMLPage, LoggedPage, method, pagination
|
||||
from weboob.browser2.elements import ListElement, ItemElement
|
||||
from weboob.browser2.filters.standard import CleanText, CleanDecimal, Field, DateTime, Format
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ from weboob.capabilities.bugtracker import CapBugTracker, Issue, Project, User,
|
|||
Query, Change
|
||||
from weboob.capabilities.collection import CapCollection, Collection, CollectionNotFound
|
||||
from weboob.tools.backend import Module, BackendConfig
|
||||
from weboob.tools.exceptions import BrowserHTTPNotFound
|
||||
from weboob.core.exceptions import BrowserHTTPNotFound
|
||||
from weboob.tools.value import ValueBackendPassword, Value
|
||||
|
||||
from .browser import RedmineBrowser
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
import re
|
||||
|
||||
from weboob.browser2 import DomainBrowser, HTMLPage, Profile
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
from weboob.tools.json import json
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from weboob.tools.backend import Module, BackendConfig
|
|||
from weboob.capabilities.messages import CapMessages, Thread, CapMessagesPost
|
||||
from weboob.capabilities.collection import CapCollection, CollectionNotFound, Collection
|
||||
from weboob.capabilities.base import find_object
|
||||
from weboob.tools.exceptions import BrowserForbidden
|
||||
from weboob.core.exceptions import BrowserForbidden
|
||||
from .browser import TwitterBrowser
|
||||
import itertools
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
from weboob.capabilities.video import BaseVideo
|
||||
from weboob.capabilities.image import BaseImage
|
||||
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.core.exceptions import ParseError
|
||||
from weboob.browser2.elements import ItemElement, ListElement
|
||||
from weboob.browser2.page import HTMLPage, method, pagination, JsonPage
|
||||
from weboob.browser2.filters.standard import Regexp, Env, CleanText, DateTime, Duration, Field
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from time import sleep
|
|||
|
||||
from weboob.capabilities.bank import AccountNotFound
|
||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||
|
||||
from .pages import LoginPage, LoginRedirectPage, LoggedInPage, SummaryPage, \
|
||||
DynamicPage
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from requests.exceptions import HTTPError
|
||||
from weboob.tools.exceptions import BrowserHTTPError, BrowserHTTPNotFound
|
||||
from weboob.core.exceptions import BrowserHTTPError, BrowserHTTPNotFound
|
||||
|
||||
|
||||
class HTTPNotFound(HTTPError, BrowserHTTPNotFound):
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import re
|
|||
from ast import literal_eval
|
||||
|
||||
from weboob.browser2.filters.standard import Filter, Regexp, RegexpError
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.core.exceptions import ParseError
|
||||
|
||||
|
||||
__all__ = ['JSPayload', 'JSVar']
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from dateutil.parser import parse as parse_date
|
|||
|
||||
from weboob.capabilities.base import empty
|
||||
from weboob.tools.compat import basestring
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.core.exceptions import ParseError
|
||||
from weboob.browser2 import URL
|
||||
from weboob.tools.log import getLogger
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from contextlib import closing
|
|||
from compileall import compile_dir
|
||||
from io import BytesIO
|
||||
|
||||
from weboob.tools.exceptions import BrowserHTTPError, BrowserHTTPNotFound
|
||||
from weboob.core.exceptions import BrowserHTTPError, BrowserHTTPNotFound
|
||||
from .modules import LoadedModule
|
||||
from weboob.tools.log import getLogger
|
||||
from weboob.tools.misc import to_unicode
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ from weboob.capabilities.base import ConversionWarning, BaseObject
|
|||
from weboob.core import Weboob, CallErrors
|
||||
from weboob.core.backendscfg import BackendsConfig
|
||||
from weboob.tools.config.iconfig import ConfigError
|
||||
from weboob.tools.exceptions import FormFieldConversionWarning
|
||||
from weboob.core.exceptions import FormFieldConversionWarning
|
||||
from weboob.tools.log import createColoredFormatter, getLogger, DebugFilter, settings as log_settings
|
||||
from weboob.tools.misc import to_unicode
|
||||
from .results import ResultsConditionError
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ from weboob.capabilities.account import CapAccount, Account, AccountRegisterErro
|
|||
from weboob.core.backendscfg import BackendAlreadyExists
|
||||
from weboob.core.modules import ModuleLoadError
|
||||
from weboob.core.repositories import ModuleInstallError
|
||||
from weboob.tools.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserForbidden, BrowserSSLError
|
||||
from weboob.core.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserForbidden, BrowserSSLError
|
||||
from weboob.tools.value import Value, ValueBool, ValueFloat, ValueInt, ValueBackendPassword
|
||||
from weboob.tools.misc import to_unicode
|
||||
from weboob.tools.ordereddict import OrderedDict
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ from weboob.core.ouiboube import Weboob, VersionsMismatchError
|
|||
from weboob.core.scheduler import IScheduler
|
||||
from weboob.core.repositories import ModuleInstallError
|
||||
from weboob.tools.config.iconfig import ConfigError
|
||||
from weboob.tools.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserForbidden
|
||||
from weboob.core.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserForbidden
|
||||
from weboob.tools.value import ValueInt, ValueBool, ValueBackendPassword
|
||||
from weboob.tools.misc import to_unicode
|
||||
from weboob.capabilities import UserError
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ from contextlib import closing
|
|||
from gzip import GzipFile
|
||||
import warnings
|
||||
|
||||
from weboob.tools.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserPasswordExpired, BrowserForbidden, BrowserBanned, BrowserHTTPNotFound, BrowserHTTPError, FormFieldConversionWarning, BrowserSSLError
|
||||
from weboob.core.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserPasswordExpired, BrowserForbidden, BrowserBanned, BrowserHTTPNotFound, BrowserHTTPError, FormFieldConversionWarning, BrowserSSLError
|
||||
from weboob.tools.decorators import retry
|
||||
from weboob.tools.log import getLogger
|
||||
from weboob.tools.mech import ClientForm
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ from weboob.capabilities import NotAvailable, NotLoaded
|
|||
from weboob.tools.misc import to_unicode
|
||||
from weboob.tools.log import getLogger
|
||||
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.core.exceptions import ParseError
|
||||
from weboob.browser2.elements import TableElement, ItemElement
|
||||
from weboob.browser2.filters.standard import Filter, CleanText, CleanDecimal, TableCell
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue