first argument to _getLock is mandatory
even if it is overruled by the named options that are also specified otherwise python complains with the slightly confusing error: "method requires 1 argument (2 given)"
This commit is contained in:
parent
4775a92ad3
commit
c2fb24c783
|
@ -64,7 +64,7 @@ def idle(capi):
|
|||
assert controlfile == os.path.abspath(controlfile)
|
||||
try:
|
||||
# lock the job so that it isn't deleted while sending
|
||||
lock = _getLock(forfile=controlfile, blocking=0)
|
||||
lock = _getLock('dummy', forfile=controlfile, blocking=0)
|
||||
except LockTakenError:
|
||||
# if we didn't get the lock, continue with next job
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue