Commit 6e9823f1 authored by Seblu's avatar Seblu

Printer.out display nothing if message is None

parent b7d9b425
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment