Skip to content

Commit 8cacff0

Browse files
committed
fix: account for sets
1 parent 1a10c21 commit 8cacff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/utils/provenance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ def prov_encode(graph, value, create_container=True):
202202
entities.append(item_entity)
203203
if isinstance(item, list):
204204
continue
205-
if not isinstance(item_entity.value[0], string_types):
205+
if not isinstance(list(item_entity.value)[0], string_types):
206206
raise ValueError('Not a string literal')
207-
if 'file://' not in item_entity.value[0]:
207+
if 'file://' not in list(item_entity.value)[0]:
208208
raise ValueError('No file found')
209209
id = get_id()
210210
entity = graph.collection(identifier=id)

0 commit comments

Comments
 (0)