Skip to content

Commit

Permalink
Reraise CancelledError in PubSub execute
Browse files Browse the repository at this point in the history
Derived from NoneGG/aredis#182
  • Loading branch information
alisaifee committed Jan 16, 2022
1 parent 4772063 commit 1068673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coredis/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def _execute(self, connection, command, *args):
# when connection is reused
connection.disconnect()

return None
raise
except (ConnectionError, TimeoutError) as e:
connection.disconnect()

Expand Down

0 comments on commit 1068673

Please sign in to comment.