Skip to content

Commit f3d61d0

Browse files
authored
Fix Error with curie parsing in sssom parse #519 (#520)
Fixes #519 Seems that in the new sssom py versions, the type of the inputs is "tuple", not list.
1 parent 01965f4 commit f3d61d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sssom/io.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ def extract_iris(
185185
return sorted(set(chain.from_iterable(extract_iris(p, converter) for p in pred_list)))
186186
if isinstance(input, list):
187187
return sorted(set(chain.from_iterable(extract_iris(p, converter) for p in input)))
188+
if isinstance(input, tuple):
189+
return sorted(set(chain.from_iterable(extract_iris(p, converter) for p in input)))
188190
if converter.is_uri(input):
189191
return [converter.standardize_uri(input, strict=True)]
190192
if converter.is_curie(input):

0 commit comments

Comments
 (0)