misc stuff

This commit is contained in:
Romain Bignon 2010-04-04 16:52:03 +02:00
commit 140024b813
2 changed files with 1 additions and 2 deletions

View file

@ -51,7 +51,7 @@ class Backend:
value = config.get(name, field.default) value = config.get(name, field.default)
if value is None: 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)): if field.regexp and re.match(field.regexp, str(value)):
raise Backend.ConfigError("Value of '%s' does not match regexp '%s'" % (name, field.regexp)) raise Backend.ConfigError("Value of '%s' does not match regexp '%s'" % (name, field.regexp))

View file

@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import sys import sys
from types import MethodType from types import MethodType
from weboob import Weboob
from weboob.capabilities.travel import ICapTravel from weboob.capabilities.travel import ICapTravel
from weboob.tools.application import ConsoleApplication from weboob.tools.application import ConsoleApplication