Move exceptions to weboob.core.exceptions

This commit is contained in:
Florent 2014-10-02 11:04:14 +02:00
commit 9949bbf919
35 changed files with 34 additions and 34 deletions

View file

@ -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

View file

@ -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

View file

@ -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):

View file

@ -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

View file

@ -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

View file

@ -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, \

View file

@ -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

View file

@ -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):

View file

@ -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']

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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,\

View file

@ -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

View file

@ -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

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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