From 077042dd4335eceb5d9bc471f0f93cad6068c0af Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Wed, 13 Mar 2024 07:59:15 +0000 Subject: [PATCH] Raise exception upon missing value --- slixfeed/sqlite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slixfeed/sqlite.py b/slixfeed/sqlite.py index 50f7bbd..2d25a69 100644 --- a/slixfeed/sqlite.py +++ b/slixfeed/sqlite.py @@ -2504,8 +2504,9 @@ async def set_setting_value(db_file, key_value): .format(function_name, db_file, key, val)) if not val: - logger.error('Missing value for key "{}" ({}).'.format(key, db_file)) - return + raise Exception('Missing value for key "{}" ({}).'.format(key, db_file)) + # logger.error('Missing value for key "{}" ({}).'.format(key, db_file)) + # return async with DBLOCK: with create_connection(db_file) as conn: