Skip to content

Commit

Permalink
feat: check for driver when returning status
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed May 15, 2024
1 parent 6bab1a4 commit 7214dae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lmao/module_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def ask(self, request: Dict) -> Generator[Dict]:

# Clear status back to IDLE
finally:
self.status = STATUS_IDLE
self.status = STATUS_IDLE if self._module_class is not None else STATUS_NOT_INITIALIZED

def response_stop(self) -> None:
"""Wrapper for response_stop() function
Expand All @@ -211,7 +211,7 @@ def response_stop(self) -> None:

# Clear status back to IDLE
finally:
self.status = STATUS_IDLE
self.status = STATUS_IDLE if self._module_class is not None else STATUS_NOT_INITIALIZED

def delete_conversation(self, conversation: Dict) -> None:
"""Wrapper for conversation_delete() function
Expand All @@ -231,4 +231,4 @@ def delete_conversation(self, conversation: Dict) -> None:

# Clear status back to IDLE
finally:
self.status = STATUS_IDLE
self.status = STATUS_IDLE if self._module_class is not None else STATUS_NOT_INITIALIZED

0 comments on commit 7214dae

Please sign in to comment.