Skip to content

Commit

Permalink
Undo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStapp committed Sep 26, 2024
1 parent 0e03581 commit b241f6d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pymongo/network_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,7 @@ async def async_receive_data(
raise socket.timeout("timed out")
if read_task in done:
return read_task.result()
elif conn.cancel_context.cancelled:
raise _OperationCancelled("operation cancelled")
return read_task.result()
raise _OperationCancelled("operation cancelled")
finally:
sock.settimeout(sock_timeout)

Expand Down

0 comments on commit b241f6d

Please sign in to comment.