clover_blocks: Use Python3 syntax for exec

This commit is contained in:
Alexey Rogachevskiy
2020-10-18 15:07:14 +03:00
parent 6f30613ce0
commit e1643a681a

View File

@@ -111,7 +111,7 @@ def run(req):
'print': _print,
'raw_input': _input}
try:
exec req.code in g
exec(req.code, g)
except Stop:
rospy.loginfo('Program forced to stop')
except Exception as e: