Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-k committed Aug 14, 2024
1 parent 3f0e03e commit b7ce345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rohrpost/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def handle_rohrpost_message(
A valid JSON object including at least an "id" and "type" field.
It then hands off further handling to the registered handler (if any).
"""
_send_error = partial(send_error, consumer=consumer, message_id=None, handler=None)
_send_error = partial(send_error, consumer=consumer, message_id=None, handler="")
if not text_data:
_send_error(error="Received empty message.")
return
Expand Down
2 changes: 1 addition & 1 deletion src/rohrpost/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def send_error(
*,
consumer: WebsocketConsumer,
handler: str,
message_id: MessageID,
message_id: Optional[MessageID],
error: str,
data: Optional[dict] = None,
) -> None:
Expand Down

0 comments on commit b7ce345

Please sign in to comment.