fix: minor compatibility issue with latest python versions

This commit is contained in:
ziirish 2022-11-06 21:35:17 +01:00
parent de3a419db4
commit 555ba070ad
No known key found for this signature in database
GPG key ID: 72DB229A64B54E46

View file

@ -432,7 +432,8 @@ class ClientTreeAll(Resource):
redo = True
while redo:
redo = False
for key, entry in tree.items().copy():
# using a copy
for key, entry in dict(tree).items():
parent = entry["parent"]
if not entry["children"]:
entry["children"] = None