Fix possible ZeroDivisionError in quota calculation

This commit is contained in:
Raphael Michel
2020-05-19 17:22:52 +02:00
parent 48d2f98815
commit 65b612eabd

View File

@@ -533,6 +533,8 @@ class Item(LoggedModel):
quotacounter[q] += b.count
for q, n in quotacounter.items():
if n == 0:
continue
a = q.availability(count_waitinglist=count_waitinglist, _cache=_cache)
if a[1] is None:
continue