def _resources(project, text): if text is None or text.strip() == '': return None return filter.resources(project, text)