misc stuff
This commit is contained in:
parent
e92bfc4d65
commit
140024b813
2 changed files with 1 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ class Backend:
|
|||
value = config.get(name, field.default)
|
||||
|
||||
if value is None:
|
||||
raise Backend.ConfigError("Missing parameter '%s'" % name)
|
||||
raise Backend.ConfigError("Missing parameter '%s' (%s)" % (name, field.description))
|
||||
|
||||
if field.regexp and re.match(field.regexp, str(value)):
|
||||
raise Backend.ConfigError("Value of '%s' does not match regexp '%s'" % (name, field.regexp))
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
import sys
|
||||
from types import MethodType
|
||||
|
||||
from weboob import Weboob
|
||||
from weboob.capabilities.travel import ICapTravel
|
||||
from weboob.tools.application import ConsoleApplication
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue