diff --git a/installsystems/printer.py b/installsystems/printer.py index 885c80ea2eb97892aef26469edb9bd177bb19220..6407384b1c438698ae59c9c1f2d1f7d1d50c264c 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: