dont fail with inconsistent changelogs
This commit is contained in:
parent
224864bace
commit
b6866cb2be
6 changed files with 9 additions and 7 deletions
|
|
@ -379,7 +379,8 @@ class Item(db.Model):
|
|||
remove_empty_folders(os.path.dirname(path))
|
||||
db.session.delete(f)
|
||||
user = state.user()
|
||||
self.users.remove(user)
|
||||
if user in self.users:
|
||||
self.users.remove(user)
|
||||
db.session.commit()
|
||||
if not self.users:
|
||||
db.session.delete(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue