mirror of https://github.com/nucypher/nucypher.git
Check correct Falsey for collectors being initialized.
parent
6a578f034a
commit
3ac4a2c2ac
|
@ -55,10 +55,10 @@ class MetricsCollector(ABC):
|
|||
|
||||
class BaseMetricsCollector(MetricsCollector):
|
||||
def __init__(self):
|
||||
self.metrics = None
|
||||
self.metrics: Dict = None
|
||||
|
||||
def collect(self) -> None:
|
||||
if not self.metrics:
|
||||
if self.metrics is None:
|
||||
raise self.CollectorNotInitialized
|
||||
|
||||
self._collect_internal()
|
||||
|
|
Loading…
Reference in New Issue