mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Prevent freeze in the cli if it's not running from a tty
This commit is contained in:
parent
a205c04876
commit
f2fed4a8b5
1 changed files with 3 additions and 2 deletions
|
@ -168,8 +168,9 @@ class Interface(BaseInterface):
|
|||
m18n.set_locale(get_locale())
|
||||
|
||||
# Connect signals to handlers
|
||||
msignals.set_handler('authenticate', self._do_authenticate)
|
||||
msignals.set_handler('display', self._do_display)
|
||||
if os.isatty(1):
|
||||
msignals.set_handler('authenticate', self._do_authenticate)
|
||||
msignals.set_handler('prompt', self._do_prompt)
|
||||
|
||||
self.actionsmap = actionsmap
|
||||
|
|
Loading…
Reference in a new issue