From e571b59b317c69cde714a70fbac809f9a1fa4610 Mon Sep 17 00:00:00 2001 From: Johanna England Date: Tue, 5 Mar 2024 14:36:46 +0100 Subject: [PATCH] Fix deprecation warning by setting daemon attribute --- python/nav/statemon/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nav/statemon/db.py b/python/nav/statemon/db.py index 6a692b7525..32869eb9c7 100644 --- a/python/nav/statemon/db.py +++ b/python/nav/statemon/db.py @@ -73,7 +73,7 @@ class _DB(threading.Thread): def __init__(self): threading.Thread.__init__(self) - self.setDaemon(1) + self.daemon = True self.queue = queue.Queue() self._hosts_to_ping = [] self._checkers = []