Skip to content

Commit aa51d3d

Browse files
committed
bugfix force_dict -> force_list
1 parent dc82bbf commit aa51d3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openml/runs/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def obtain_field(xml_obj, fieldname, from_server, cast=None):
681681
else:
682682
raise AttributeError('Run XML does not contain required (server) field: ', fieldname)
683683

684-
run = xmltodict.parse(xml, force_dict=['oml:file', 'oml:evaluation'])["oml:run"]
684+
run = xmltodict.parse(xml, force_list=['oml:file', 'oml:evaluation'])["oml:run"]
685685
run_id = obtain_field(run, 'oml:run_id', from_server, cast=int)
686686
uploader = obtain_field(run, 'oml:uploader', from_server, cast=int)
687687
uploader_name = obtain_field(run, 'oml:uploader_name', from_server)

0 commit comments

Comments
 (0)