Fix a bug with Python runner not handling a timeout correctly if an
action fails before producing any output.
@@ -318,9 +318,11 @@ class PythonRunner(GitWorktreeActionRunner):
action_result = split[1].strip()
stdout = split[0] + split[2]
else:
+ # Timeout or similar
action_result = None
- # Parse the serialized action result object
+ # Parse the serialized action result object (if available)
+ if action_result:
try:
action_result = json.loads(action_result)
except Exception as e:
