mirror of https://github.com/MISP/misp-modules
fix: [vulnerability_lookup] Quick fix on a typing and an indentation
- Typing was correct but failing for some old python versionspull/709/head
parent
f829c755ce
commit
6d29742459
|
@ -168,7 +168,7 @@ class VulnerabilityLookupParser(VulnerabilityParser):
|
||||||
)
|
)
|
||||||
getattr(self, feature)(lookup_result)
|
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:
|
for alias in aliases:
|
||||||
query = requests.get(f"{api_url}/vulnerability/{alias}")
|
query = requests.get(f"{api_url}/vulnerability/{alias}")
|
||||||
if query.status_code != 200:
|
if query.status_code != 200:
|
||||||
|
|
Loading…
Reference in New Issue