should have caught this earlier. this is probably way too general. what use case are you protecting against here? you should either catch `AttributeError` or probably better, just pass in `None` as the third argument which will be returned as the default, and remove the try block entirely