python3: Gotta add list() when we manipulate the dict during the loop

This commit is contained in:
Alexandre Aubin 2021-01-02 18:39:36 +01:00
parent caa5e07d41
commit bbfd5eb9d0

View file

@ -599,7 +599,7 @@ def _get_services():
# some services are marked as None to remove them from YunoHost # some services are marked as None to remove them from YunoHost
# filter this # filter this
for key, value in services.items(): for key, value in list(services.items()):
if value is None: if value is None:
del services[key] del services[key]