There is a "hard" isinstance(urnlist, list) check, which means that it doesn’t work with other iterables like tuples. It should probably be something like
from collections.abc import Iterable
if isinstance(urnlist, Iterable):
_urnlist = list(urnlist)
There is a "hard"
isinstance(urnlist, list)check, which means that it doesn’t work with other iterables like tuples. It should probably be something like