Skip to content

Commit

Permalink
fix event args
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Mar 25, 2024
1 parent ff48ea0 commit 9829de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opendevin/server/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ async def create_controller(self, start_event=None):
await self.send({"action": "initialize", "message": "Control loop started."})

async def start_task(self, start_event):
if "task" not in start_event.args:
if "task" not in start_event["args"]:
await self.send_error("No task specified")
return
await self.send_message("Starting new task...")
task = start_event.args["task"]
task = start_event["args"]["task"]
if self.controller is None:
await self.send_error("No agent started. Please wait a second...")
return
Expand Down

0 comments on commit 9829de5

Please sign in to comment.