mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
list.pop() doesn't accept a second argument
This was introduced by 032271a030a6bbe39d22e9ebadf2a86ddf3b6705.
This commit is contained in:
parent
f69c17f8e2
commit
dd7c8f330b
@ -205,7 +205,7 @@ class Arbiter(object):
|
|||||||
while True:
|
while True:
|
||||||
self.maybe_promote_master()
|
self.maybe_promote_master()
|
||||||
|
|
||||||
sig = self.SIG_QUEUE.pop(0, None)
|
sig = self.SIG_QUEUE.pop(0) if self.SIG_QUEUE else None
|
||||||
if sig is None:
|
if sig is None:
|
||||||
self.sleep()
|
self.sleep()
|
||||||
self.murder_workers()
|
self.murder_workers()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user