Skip to content

Commit

Permalink
Fixed a crash when plugins reported ignored rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
git-afsantos committed Aug 12, 2021
1 parent 623e1e4 commit 257b6e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion haros/analysis_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ def _get_property(self, property_id, data, allowed):
if not property_id in data:
ident = self._plugin.name + ":" + property_id
if not ident in data:
raise UndefinedPropertyError(property_id)
self.log.debug(
"Plugin {!r} reported unknown property ID: {!r}".format(
self._plugin.name, property_id))
# raise UndefinedPropertyError(property_id)
return None
return data[ident] if ident in allowed else None

def _check_metric_value(self, metric, value):
Expand Down

0 comments on commit 257b6e2

Please sign in to comment.