summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelwin Ong <selwin.ong@gmail.com>2019-09-10 23:57:35 +0700
committerSelwin Ong <selwin.ong@gmail.com>2019-09-10 23:57:35 +0700
commitd6b1746d46a618d5c0531d64f85eef14790d1261 (patch)
treec3682785432d8bac4c18e79b241b9e25fba41d04
parent7a0b6792e0668c290cfb331646bda2763d8ea63b (diff)
downloadrq-d6b1746d46a618d5c0531d64f85eef14790d1261.tar.gz
Use OSError rather than ProcessLookupError for PyPy compatibility
-rw-r--r--rq/worker.py2
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()