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:
Christian Lohmaier 2013-05-25 11:13:57 +02:00
parent 4775a92ad3
commit c2fb24c783
1 changed files with 1 additions and 1 deletions

View File

@ -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