Browse Source

Convert dict.keys() to list explicitly for deleting elems while iterating

version-14
Aditya Hase 7 years ago
parent
commit
f7da376279
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/desk/form/linked_with.py

+ 1
- 1
frappe/desk/form/linked_with.py View File

@@ -119,7 +119,7 @@ def _get_linked_doctypes(doctype):
if not dt in ret:
ret[dt] = {"get_parent": True}

for dt in ret.keys():
for dt in list(ret.keys()):
try:
doctype_module = load_doctype_module(dt)
except ImportError:


Loading…
Cancel
Save