create UserError exception
Modules can raise this exception when they want to print errors to user
This commit is contained in:
parent
b4154b5843
commit
aea269e9f6
21 changed files with 68 additions and 47 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
import datetime
|
||||
|
||||
from weboob.capabilities import UserError
|
||||
from weboob.tools.misc import to_unicode
|
||||
from weboob.tools.browser import BasePage, BrokenPageError
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ from weboob.tools.browser import BasePage, BrokenPageError
|
|||
__all__ = ['StationNotFound', 'DeparturesPage']
|
||||
|
||||
|
||||
class StationNotFound(Exception):
|
||||
class StationNotFound(UserError):
|
||||
pass
|
||||
|
||||
class DeparturesPage(BasePage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue