summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index dc34df6b..87fb3aad 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -585,7 +585,7 @@ class Cmd(cmd.Cmd):
:param msg: str - message to print to current stdout - anyting convertible to a str with '{}'.format() is OK
:param end: str - string appended after the end of the message if not already present, default a newline
"""
- if msg:
+ if msg is not None and msg != '':
try:
msg_str = '{}'.format(msg)
self.stdout.write(msg_str)