fix crash when trying to add twice a same module

This commit is contained in:
Romain Bignon 2012-02-25 13:43:58 +01:00
commit fbe9ccec04

View file

@ -320,7 +320,7 @@ class ConsoleApplication(BaseApplication):
if not self.ask('Add new backend for module "%s"?' % module.name, default=False):
return 1
name = self.ask('Please give new instance name' % module.name, default='%s2' % name, regexp=r'^[\w\-_]+$')
name = self.ask('Please give new instance name', default='%s2' % name, regexp=r'^[\w\-_]+$')
try:
config = config.load(self.weboob, module.name, name, params, nofail=True)