From 3154d7f79d34e71d0fb254751bc6ad78aa8a6598 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Fri, 6 May 2011 00:45:05 +0200 Subject: [PATCH] Do not prompt to add backends if not in an interactive session --- weboob/tools/application/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/tools/application/console.py b/weboob/tools/application/console.py index 5ba01c6b..0d8307af 100644 --- a/weboob/tools/application/console.py +++ b/weboob/tools/application/console.py @@ -92,7 +92,7 @@ class ConsoleApplication(BaseApplication): def check_loaded_backends(self, default_config=None): while len(self.enabled_backends) == 0: print 'Warning: there is currently no configured backend for %s' % self.APPNAME - if not self.ask('Do you want to configure backends?', default=True): + if not self.interactive or not self.ask('Do you want to configure backends?', default=True): return False self.prompt_create_backends(default_config)