diff --git a/gestion/affich_tools.py b/gestion/affich_tools.py index bd40f753..ba6bb39e 100644 --- a/gestion/affich_tools.py +++ b/gestion/affich_tools.py @@ -29,7 +29,10 @@ if 'TERM' in os.environ and os.environ['TERM'] != 'unknown': else: el = os.popen('tput -Tvt100 cr ; tput -Tvt100 el').read() -stdout_atty = sys.stdout.isatty() +try: + stdout_atty = sys.stdout.isatty() +except IOError: + stdout_atty = False def dialog(backtitle,arg,dialogrc='') : """ Affiche la boite de dialogue défine avec les arguments fournis