mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update diagnosis.py: gotta "return" now if the key doesn't exist, otherwise the next code fails
This commit is contained in:
parent
9727765ecf
commit
c0bccc3ac9
1 changed files with 1 additions and 0 deletions
|
@ -323,6 +323,7 @@ def _diagnosis_ignore(add_filter=None, remove_filter=None, list=False):
|
||||||
|
|
||||||
if criterias not in configuration["ignore_filters"][category]:
|
if criterias not in configuration["ignore_filters"][category]:
|
||||||
logger.warning(f"(There is no such diagnosis {category} filter with these criterias to remove)")
|
logger.warning(f"(There is no such diagnosis {category} filter with these criterias to remove)")
|
||||||
|
return
|
||||||
|
|
||||||
configuration["ignore_filters"][category].remove(criterias)
|
configuration["ignore_filters"][category].remove(criterias)
|
||||||
_diagnosis_write_configuration(configuration)
|
_diagnosis_write_configuration(configuration)
|
||||||
|
|
Loading…
Add table
Reference in a new issue