From 4401237a51aa6edbec067f95d4367dac41a6ecc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 26 Mar 2016 19:14:15 +0100 Subject: [PATCH] [fix] Check for tty in root_handlers before remove it in bin/yunohost --- bin/yunohost | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/yunohost b/bin/yunohost index 0981c48db..24389df4d 100755 --- a/bin/yunohost +++ b/bin/yunohost @@ -100,7 +100,7 @@ def _init_moulinette(debug=False, verbose=False, quiet=False): handlers.append('tty') root_handlers = set(handlers) - if not debug: + if not debug and 'tty' in root_handlers: root_handlers.remove('tty') # Define loggers level