Skip to content

Commit ef059ea

Browse files
committed
Wrap to make sure the fields_dict.items() is a list object
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 1da263c commit ef059ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributecode/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def load_dict(self, fields_dict, base_dir, running_inventory=False,
10391039
Return a list of
10401040
errors.
10411041
"""
1042-
fields = fields_dict.items()
1042+
fields = list(fields_dict.items())
10431043
about_file_path = self.about_file_path
10441044
if not with_empty:
10451045
fields = [(n, v) for n, v in fields_dict.items() if v]

0 commit comments

Comments
 (0)