diff --git a/redfish/types.py b/redfish/types.py index 28372aa..48ea32a 100644 --- a/redfish/types.py +++ b/redfish/types.py @@ -63,6 +63,7 @@ class Base(object): links = getattr(self.data, mapping.redfish_mapper.map_links()) if link_type in links: return urljoin(self.url, links[link_type][mapping.redfish_mapper.map_links_ref()]) + raise AttributeError else: links = getattr(self.data, link_type) link = getattr(links, mapping.redfish_mapper.map_links_ref())