From 80705cb341c532bfeb9010ea0e9d93aaa66485c0 Mon Sep 17 00:00:00 2001 From: Hemna Date: Tue, 9 Apr 2024 06:59:22 -0400 Subject: [PATCH] Ensure StatsStore has empty data This patch ensures that the StatsStore object has a default empty dict for data. --- aprsd/threads/stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aprsd/threads/stats.py b/aprsd/threads/stats.py index a6517be..f00ec14 100644 --- a/aprsd/threads/stats.py +++ b/aprsd/threads/stats.py @@ -16,6 +16,7 @@ LOG = logging.getLogger("APRSD") class StatsStore(objectstore.ObjectStoreMixin): """Container to save the stats from the collector.""" lock = threading.Lock() + data = {} class APRSDStatsStoreThread(APRSDThread):