diff --git a/steam/items.py b/steam/items.py index ebb20d3..d25122e 100644 --- a/steam/items.py +++ b/steam/items.py @@ -122,7 +122,12 @@ def _attribute_definition(self, attrid): return dict(attrs[attrid]) except KeyError: attr_names = self._schema["attribute_names"] - return dict(attrs.get(attr_names.get(str(attrid).lower()))) or None + attrdef = attrs.get(attr_names.get(str(attrid).lower())) + + if not attrdef: + return None + else: + return dict(attrdef) def _quality_definition(self, qid): """ Returns the ID and localized name of the given quality, can be either ID type """