Update tool_python.py
Browse files- tool_python.py +1 -1
tool_python.py
CHANGED
|
@@ -79,7 +79,7 @@ class PythonInterpreter(BaseToolWithFileAccess):
|
|
| 79 |
# if triple_match:
|
| 80 |
# code = triple_match.group(1)
|
| 81 |
except Exception:
|
| 82 |
-
|
| 83 |
|
| 84 |
if not code.strip():
|
| 85 |
return '[Python Interpreter Error]: Empty code.'
|
|
|
|
| 79 |
# if triple_match:
|
| 80 |
# code = triple_match.group(1)
|
| 81 |
except Exception:
|
| 82 |
+
return '[Python Interpreter Error]: format error.'
|
| 83 |
|
| 84 |
if not code.strip():
|
| 85 |
return '[Python Interpreter Error]: Empty code.'
|