Skip to content

Commit

Permalink
Initialize BaseGroupChat before reset (#5608)
Browse files Browse the repository at this point in the history
Fixes #5366 

Solution: Instead of raising an error called `_init()`

---------

Co-authored-by: Jack Gerrits <[email protected]>
  • Loading branch information
gagb and jackgerrits authored Feb 19, 2025
1 parent a0e3a12 commit fa3396e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ async def main() -> None:
"""

if not self._initialized:
raise RuntimeError("The group chat has not been initialized. It must be run before it can be reset.")
await self._init(self._runtime)

if self._is_running:
raise RuntimeError("The group chat is currently running. It must be stopped before it can be reset.")
Expand Down

0 comments on commit fa3396e

Please sign in to comment.