try eval first

This commit is contained in:
Lieuwe 2011-02-26 21:32:53 +01:00
parent 9de1949dab
commit 7d615c2a87

View File

@ -94,6 +94,9 @@ def handle(txt):
def _handle(txt):
#print "handling '%s'"%txt
try:
sys.stdout.write(repr(eval(tmp)))
except:
try:
exec txt
except Exception as ex: