Skip to content

Commit

Permalink
Fix error modifying motd
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jul 27, 2024
1 parent 2c1e5b3 commit e20a4b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion secretlounge_ng/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit e20a4b0

Please sign in to comment.