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