Skip to content

Commit 0c3216b

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent f92d755 commit 0c3216b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

realtime/channel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def join(self) -> None:
5858
try:
5959
await self.socket.ws_connection.send(json.dumps(join_req))
6060
except Exception as e:
61-
print(str(e)) # TODO: better error propagation
61+
print(e)
6262
return
6363

6464
async def leave(self) -> None:
@@ -75,7 +75,7 @@ async def leave(self) -> None:
7575
try:
7676
await self.socket.ws_connection.send(json.dumps(leave_req))
7777
except Exception as e:
78-
print(str(e)) # TODO: better error propagation
78+
print(e)
7979
return
8080

8181
def on(self, event: str, ref: str, callback: Callback) -> Channel:
@@ -115,5 +115,5 @@ async def send(self, event_name: str, payload: str, ref: str) -> None:
115115
try:
116116
await self.socket.ws_connection.send(json.dumps(msg))
117117
except Exception as e:
118-
print(str(e)) # TODO: better error propagation
118+
print(e)
119119
return

0 commit comments

Comments
 (0)