Skip to content

Commit

Permalink
fix: [vulnerability_lookup] Quick fix on a typing and an indentation
Browse files Browse the repository at this point in the history
- Typing was correct but failing for some old python versions
  • Loading branch information
chrisr3d committed Dec 18, 2024
1 parent f829c75 commit 6d29742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misp_modules/modules/expansion/vulnerability_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def parse_lookup_result(self, lookup_result: dict):
)
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:
Expand Down Expand Up @@ -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.'
}
Expand Down

0 comments on commit 6d29742

Please sign in to comment.