diff options
author | Selwin Ong <selwin.ong@gmail.com> | 2019-09-10 23:57:35 +0700 |
---|---|---|
committer | Selwin Ong <selwin.ong@gmail.com> | 2019-09-10 23:57:35 +0700 |
commit | d6b1746d46a618d5c0531d64f85eef14790d1261 (patch) | |
tree | c3682785432d8bac4c18e79b241b9e25fba41d04 | |
parent | 7a0b6792e0668c290cfb331646bda2763d8ea63b (diff) | |
download | rq-d6b1746d46a618d5c0531d64f85eef14790d1261.tar.gz |
Use OSError rather than ProcessLookupError for PyPy compatibility
-rw-r--r-- | rq/worker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rq/worker.py b/rq/worker.py index 878f0a0..afddc31 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -529,7 +529,7 @@ class Worker(object): # Send the kill signal to scheduler process try: os.kill(self.scheduler._process.pid, signal.SIGTERM) - except ProcessLookupError: + except OSError: pass self.scheduler._process.join() |