do not print result if it is None
This commit is contained in:
parent
1f7e590864
commit
959de0b1bf
1 changed files with 5 additions and 3 deletions
|
|
@ -161,6 +161,8 @@ class ConsoleApplication(BaseApplication):
|
||||||
print command_result
|
print command_result
|
||||||
elif isinstance(command_result, int):
|
elif isinstance(command_result, int):
|
||||||
return command_result
|
return command_result
|
||||||
|
elif command_result is None:
|
||||||
|
return 0
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
print unicode(command_result)
|
print unicode(command_result)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue