From f43825e4dd1ccde0314a9f56363925c74ae3addd Mon Sep 17 00:00:00 2001 From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> Date: Mon, 9 Sep 2019 13:23:01 +0530 Subject: [PATCH] fix: convert dict to list for iteration (#18963) --- .../doctype/amazon_mws_settings/amazon_mws_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/erpnext_integrations/doctype/amazon_mws_settings/amazon_mws_api.py b/erpnext/erpnext_integrations/doctype/amazon_mws_settings/amazon_mws_api.py index fd364e87fb..cc4ccc5f4d 100755 --- a/erpnext/erpnext_integrations/doctype/amazon_mws_settings/amazon_mws_api.py +++ b/erpnext/erpnext_integrations/doctype/amazon_mws_settings/amazon_mws_api.py @@ -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