Skip to content
Snippets Groups Projects
Commit 6e9823f1 authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

Printer.out display nothing if message is None

parent b7d9b425
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment