When eval-ing python expressions, return falsy but not-None values (#1111)

This commit is contained in:
Max Hausch
2022-02-24 11:27:34 -08:00
committed by GitHub
parent c3ba039a97
commit 270a6ba333
+1 -1
View File
@@ -184,7 +184,7 @@ class CLI( Cmd ):
try:
# pylint: disable=eval-used
result = eval( line, globals(), self.getLocals() )
if not result:
if result is None:
return
elif isinstance( result, str ):
output( result + '\n' )