def get_first(self, *paths): result = self._get_first(*paths) if result: return result else: return jinja2.StrictUndefined( 'Nothing found matching paths: %s' % ','.join(paths))