diff --git a/bob/bio/base/database/DatabaseBob.py b/bob/bio/base/database/DatabaseBob.py index 31bafe5a7b0f491fd99d774ef8ae29cd1d438119..38d7857770324d9d7d9eb7616ef5307b3fb6610a 100644 --- a/bob/bio/base/database/DatabaseBob.py +++ b/bob/bio/base/database/DatabaseBob.py @@ -325,7 +325,7 @@ class DatabaseBob (Database): files : [:py:class:`FileSet`] or something similar The list of file sets used to probe the model with the given model id.""" - if model_id: + if model_id is not None: file_sets = self.database.object_sets(protocol = self.protocol, groups = group, model_ids = (model_id,), purposes = 'probe', **self.all_files_options) else: file_sets = self.database.object_sets(protocol = self.protocol, groups = group, purposes = 'probe', **self.all_files_options)