From 6e9823f14ca79997a216749e6e93d32799603954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Wed, 19 Jun 2013 18:56:27 +0200 Subject: [PATCH] Printer.out display nothing if message is None --- installsystems/printer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installsystems/printer.py b/installsystems/printer.py index 885c80e..6407384 100644 --- a/installsystems/printer.py +++ b/installsystems/printer.py @@ -64,6 +64,8 @@ def out(message="", fd=sys.stdout, endl=os.linesep, flush=True): ''' Print message colorised in fd ended by endl ''' + if message is None: + return # color subsitution color_pattern = "#(%s)#" % "|".join(COLOR) if not fd.isatty() or NOCOLOR: -- GitLab