Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier authored and greenbonebot committed Dec 19, 2023
1 parent b05e066 commit 75a74bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions gvm/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ def _ssh_authentication_input_loop(
save = input()
break
elif add == "no":
sys.exit(
"User denied key. Host key verification failed."
)
sys.exit("User denied key. Host key verification failed.")
else:
print("Please type 'yes' or 'no': ", end="")
add = input()
Expand Down
4 changes: 1 addition & 3 deletions gvm/protocols/ospv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def create_vt_selection_element(_xmlvtselection, vt_selection):
_xmlvt.add_element("vt_value", value, attrs={"id": key})
elif vt_id == "vt_groups" and isinstance(vt_values, list):
for group in vt_values:
_xmlvtselection.add_element(
"vt_group", attrs={"filter": group}
)
_xmlvtselection.add_element("vt_group", attrs={"filter": group})
else:
raise InvalidArgument(
f"It was not possible to add {vt_id} to the VTs selection."
Expand Down
1 change: 0 additions & 1 deletion gvm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def check_command_status(xml: str) -> bool:
return False



def to_dotted_types_dict(types: List) -> TypesDict:
"""Create a dictionary accessible via dot notation"""
dic = {}
Expand Down

0 comments on commit 75a74bb

Please sign in to comment.