Skip to content

Commit

Permalink
Removing () from error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvieira committed Jun 10, 2020
1 parent fc3533b commit 5eb0609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion barterdude/hooks/metrics/prometheus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def _on_complete(self,
hash_message = id(message)
labels = self.__labels.copy()
labels["state"] = state
labels["error"] = str(type(error)) if (error) else ""
labels["error"] = str(type(error)) if error else ""
self.metrics[self.__definitions.HISTOGRAM_MEASURE].labels(
**labels).observe(
final_time - self._msg_start.pop(hash_message)
Expand Down

0 comments on commit 5eb0609

Please sign in to comment.