create UserError exception

Modules can raise this exception when they want to print errors to user
This commit is contained in:
Romain Bignon 2012-04-25 13:43:52 +02:00
commit aea269e9f6
21 changed files with 68 additions and 47 deletions

View file

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