Fix ignore item hashing error
@@ -372,7 +372,9 @@ class BIDSLayout(object):
if a in self.__dict__
}
for k in ['ignore', 'force_index']:
- instance_args[k] = [str(a) for a in self.__dict__[k]]
+ kv = self.__dict__[k]
+ if kv is not None:
+ instance_args[k] = [str(a) for a in kv if a is not None]
return instance_args
def _init_db(self, database_path=None, reset_database=False):
