Fix when deleting wizard datas if it doesn't exist

This commit is contained in:
Cédric Krier committed 2009-03-24 16:01:31 +01:00
1 parent bab0ad457e
commit b0f7aae1fd
1 file changed
+2
+2
View File
@@ -121,6 +121,8 @@ class Wizard(object):
return wiz_id
def delete(self, cursor, user, wiz_id):
if wiz_id not in self._datas:
return
if self._datas[wiz_id]['user'] != user:
raise Exception('AccessDenied')
self._lock.acquire()