From 05863023ea2fe1639f7d0e0d8f4752c6207b2208 Mon Sep 17 00:00:00 2001 From: bernat Date: Tue, 22 Mar 2005 08:34:12 +0100 Subject: [PATCH] Ne pas afficher de traceback quand on a une AssertionError darcs-hash:20050322073412-d1718-98cf6c1a5cac77c0bf7872c1d278903db4c44fb1.gz --- gestion/lock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gestion/lock.py b/gestion/lock.py index 039a7f59..e08d6798 100755 --- a/gestion/lock.py +++ b/gestion/lock.py @@ -22,6 +22,8 @@ def wait_lock(lock_name, lock_comment='', d=None): try: try: make_lock(lock_name, lock_comment, nowait=1, quiet=True) + except AssertionError: + raise except: print "*** Probleme lors de l'obtention du lock..." import traceback