From 7c1c785c14914f3e6efeaa0659f102305fe8fa29 Mon Sep 17 00:00:00 2001 From: Eduardo Ferreira <@dudacgf> Date: Fri, 26 Nov 2021 10:45:59 -0300 Subject: [PATCH] Fix issue#6 - incorrect value for level parameter --- openvasreporting/libs/config.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/openvasreporting/libs/config.py b/openvasreporting/libs/config.py index 8680c55..567c08b 100644 --- a/openvasreporting/libs/config.py +++ b/openvasreporting/libs/config.py @@ -80,12 +80,6 @@ def __init__(self, input_files, output_file="openvas_report", min_level="none", if cve_included is not None and not isinstance(cve_included, str): raise TypeError("Expected str, got '{}' instead".format(type(cve_included))) - if min_level.lower() in Config.levels().values(): - min_level = min_level[0] - else: - raise ValueError("Invalid value for level parameter, \ - must be one of: c[ritical], h[igh], m[edium], l[low], n[one]") - if min_level.lower() in Config.levels().keys(): min_level = Config.levels()[min_level.lower()] else: