From e20a4b08719250e0c7ccc5cdd88c1e5543db8d44 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 27 Jul 2024 20:12:42 +0200 Subject: [PATCH] Fix error modifying motd --- secretlounge_ng/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/secretlounge_ng/database.py b/secretlounge_ng/database.py index 544d2f9..2e82b35 100644 --- a/secretlounge_ng/database.py +++ b/secretlounge_ng/database.py @@ -393,4 +393,5 @@ def setSystemConfig(self, config): sql = "REPLACE INTO system_config(`name`, `value`) VALUES (?, ?)" with self.lock: for k, v in d.items(): - self.db.execute(sql, (k, v)) + if v is not None: + self.db.execute(sql, (k, v))