Skip to content

Commit eec4b27

Browse files
andriilahutacarltongibson
authored andcommitted
Support Python 3.8 (#171)
1 parent c436cca commit eec4b27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ sudo: false
33
language: python
44

55
python:
6+
- "3.8"
7+
- "3.7"
68
- "3.6"
79

810
services:

channels_redis/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ async def receive(self, channel):
396396
for task in done:
397397
try:
398398
result = task.result()
399-
except Exception as error: # NOQA
399+
except BaseException as error: # NOQA
400400
# We should not propagate exceptions immediately as otherwise this may cause
401401
# the lock to be held and never be released.
402402
exception = error
@@ -502,7 +502,7 @@ def _cleanup_done(cleaner):
502502

503503
cleaner.add_done_callback(_cleanup_done)
504504

505-
except Exception:
505+
except BaseException:
506506
self.receive_clean_locks.release(channel_key)
507507
raise
508508

0 commit comments

Comments
 (0)