mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-23 00:12:51 +02:00
try eval first
This commit is contained in:
@@ -95,9 +95,12 @@ def handle(txt):
|
|||||||
def _handle(txt):
|
def _handle(txt):
|
||||||
#print "handling '%s'"%txt
|
#print "handling '%s'"%txt
|
||||||
try:
|
try:
|
||||||
exec txt
|
sys.stdout.write(repr(eval(tmp)))
|
||||||
except Exception as ex:
|
except:
|
||||||
error(ex)
|
try:
|
||||||
|
exec txt
|
||||||
|
except Exception as ex:
|
||||||
|
error(ex)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user