Skip to content

Commit

Permalink
Fix quotes in f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorJohn committed Nov 17, 2024
1 parent 805abe9 commit 64ccfa9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def handle_message(self, message: Message) -> None:
await self.handle_complete(message)

else:
error_message = f"Unknown message type: {message["type"]}"
error_message = f"Unknown message type: {message['type']}"
await self.handle_invalid_message(error_message)

except KeyError:
Expand Down Expand Up @@ -211,7 +211,7 @@ async def handle_subscribe(self, message: SubscribeMessage) -> None:
return

if message["id"] in self.operations:
reason = f"Subscriber for {message["id"]} already exists"
reason = f"Subscriber for {message['id']} already exists"
await self.websocket.close(code=4409, reason=reason)
return

Expand Down

0 comments on commit 64ccfa9

Please sign in to comment.