Fix when deleting wizard datas if it doesn't exist
This commit is contained in:
1 parent
bab0ad457e
commit
b0f7aae1fd
1 file changed
+2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user