mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 12:38:27 +00:00
fix: convert dict to list for iteration (#18963)
This commit is contained in:
@@ -71,7 +71,7 @@ def remove_empty(d):
|
||||
Helper function that removes all keys from a dictionary (d),
|
||||
that have an empty value.
|
||||
"""
|
||||
for key in d.keys():
|
||||
for key in list(d):
|
||||
if not d[key]:
|
||||
del d[key]
|
||||
return d
|
||||
|
||||
Reference in New Issue
Block a user