Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit bb2f7fb

Browse files
committed
Remove reduntant except block.
1 parent f221cea commit bb2f7fb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

hyper/http11/connection.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,7 @@ def _send_body(self, body, body_type):
229229

230230
# Case for bytestrings.
231231
elif isinstance(body, bytes):
232-
try:
233-
self._sock.send(body)
234-
except TypeError:
235-
raise ValueError("Body must be a bytestring")
232+
self._sock.send(body)
236233

237234
return
238235

0 commit comments

Comments
 (0)