finally makes it. Also this was preventing to see the full exception backtrace.

This commit is contained in:
Faik Uygur
2008-10-16 07:27:35 +00:00
parent 41f8f467dc
commit d93785945b
+1 -2
View File
@@ -59,9 +59,8 @@ def locked(func):
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
try:
return func(*__args,**__kw)
except Exception, e:
finally:
lock.close()
raise e
except IOError:
raise pisi.errors.AnotherInstanceError(_("Another instance of PiSi is running. Only one instance is allowed."))
return wrapper