try eval first
This commit is contained in:
parent
9de1949dab
commit
7d615c2a87
@ -95,9 +95,12 @@ def handle(txt):
|
||||
def _handle(txt):
|
||||
#print "handling '%s'"%txt
|
||||
try:
|
||||
exec txt
|
||||
except Exception as ex:
|
||||
error(ex)
|
||||
sys.stdout.write(repr(eval(tmp)))
|
||||
except:
|
||||
try:
|
||||
exec txt
|
||||
except Exception as ex:
|
||||
error(ex)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user