From 6d297424590e951673611123f815ac3ef5b73b4c Mon Sep 17 00:00:00 2001 From: Christian Studer Date: Wed, 18 Dec 2024 09:28:16 +0100 Subject: [PATCH] fix: [vulnerability_lookup] Quick fix on a typing and an indentation - Typing was correct but failing for some old python versions --- misp_modules/modules/expansion/vulnerability_lookup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misp_modules/modules/expansion/vulnerability_lookup.py b/misp_modules/modules/expansion/vulnerability_lookup.py index 7b938f89..5be87d03 100644 --- a/misp_modules/modules/expansion/vulnerability_lookup.py +++ b/misp_modules/modules/expansion/vulnerability_lookup.py @@ -168,7 +168,7 @@ class VulnerabilityLookupParser(VulnerabilityParser): ) getattr(self, feature)(lookup_result) - def _parse_aliases(self, *aliases: tuple[str]) -> Iterator[str]: + def _parse_aliases(self, *aliases: tuple) -> Iterator[str]: for alias in aliases: query = requests.get(f"{api_url}/vulnerability/{alias}") if query.status_code != 200: @@ -406,7 +406,7 @@ def handler(q=False): return q request = json.loads(q) if not check_input_attribute(request.get('attribute', {})): - return { + return { 'error': f'{standard_error_message}, which should contain ' 'at least a type, a value and an UUID.' }