Raise exception upon missing value
This commit is contained in:
parent
9692d92e21
commit
077042dd43
1 changed files with 3 additions and 2 deletions
|
@ -2504,8 +2504,9 @@ async def set_setting_value(db_file, key_value):
|
||||||
.format(function_name, db_file, key, val))
|
.format(function_name, db_file, key, val))
|
||||||
|
|
||||||
if not val:
|
if not val:
|
||||||
logger.error('Missing value for key "{}" ({}).'.format(key, db_file))
|
raise Exception('Missing value for key "{}" ({}).'.format(key, db_file))
|
||||||
return
|
# logger.error('Missing value for key "{}" ({}).'.format(key, db_file))
|
||||||
|
# return
|
||||||
|
|
||||||
async with DBLOCK:
|
async with DBLOCK:
|
||||||
with create_connection(db_file) as conn:
|
with create_connection(db_file) as conn:
|
||||||
|
|
Loading…
Reference in a new issue