linted with ruff (ruff check . --fix)

This commit is contained in:
Arthur Deierlein
2024-12-17 22:55:38 +01:00
parent 8e9b719a16
commit ad7daafc50
84 changed files with 191 additions and 381 deletions
@@ -58,7 +58,7 @@ class GetSIDs(interfaces.plugins.PluginInterface):
)
# Get all the sids from the json file.
with open(sids_json_file_name, "r") as file_handle:
with open(sids_json_file_name) as file_handle:
sids_json_data = json.load(file_handle)
self.servicesids = sids_json_data["service sids"]
self.well_known_sids = sids_json_data["well known"]
@@ -122,7 +122,7 @@ class GetSIDs(interfaces.plugins.PluginInterface):
except (
exceptions.InvalidAddressException,
layers.registry.RegistryFormatException,
) as excp:
):
continue
try:
value_data = node.decode_data()
@@ -156,7 +156,7 @@ class GetSIDs(interfaces.plugins.PluginInterface):
ValueError,
exceptions.InvalidAddressException,
layers.registry.RegistryFormatException,
) as excp:
):
continue
except (KeyError, exceptions.InvalidAddressException):
continue