Skip to content

Commit

Permalink
prefer is with booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Dec 18, 2024
1 parent eead8de commit f95cdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_vier_cvg/cvg.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, callback_base_url: Text, on_message: Callable[[UserMessage],
# If you want to maintain an accurate history in the tracker when using the CVG API directly, we have to send an event.
# Now, to prevent sending the message to CVG twice, this flag can be set to true so that the channel drops the message.
def _is_ignored(self, custom_json) -> bool:
return custom_json is not None and "ignore" in custom_json and custom_json["ignore"] == True
return custom_json is not None and "ignore" in custom_json and custom_json["ignore"] is True

async def _perform_request(self, path: str, method: str, data: Optional[any], dialog_id: Optional[str], retries: int = 0) -> (Optional[int], any):
url = f"{self.base_url}{path}"
Expand Down

0 comments on commit f95cdd8

Please sign in to comment.