Fred pd
darcs-hash:20050309214449-d1718-51d10335830b622c307c89605c32726ab1d416cb.gz
This commit is contained in:
parent
448c39dd6d
commit
f08ea04d3d
1 changed files with 8 additions and 1 deletions
|
@ -20,7 +20,14 @@ def wait_lock(lock_name, lock_comment='', d=None):
|
|||
"""
|
||||
from twisted.internet import reactor, defer
|
||||
try:
|
||||
make_lock(lock_name, lock_comment, nowait=1, quiet=True)
|
||||
try:
|
||||
make_lock(lock_name, lock_comment, nowait=1, quiet=True)
|
||||
except:
|
||||
print "Probleme lors de l'obtention du lock..."
|
||||
# On a sans doute pas le lock et c'est pas moi qui me tape
|
||||
# à debugguer les trucs à Fred.
|
||||
raise AssertionError
|
||||
|
||||
# On a le lock
|
||||
if not d:
|
||||
# On est en mode synchrone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue