fix crash when trying to add twice a same module
This commit is contained in:
parent
a722aa7986
commit
fbe9ccec04
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue