Skip to content

Commit 01fc212

Browse files
m
1 parent 115b00e commit 01fc212

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test_vector_handlers/src/awses_test_vectors/manifests/full_message/decrypt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def from_scenario(
273273
keyrings, # type: bool
274274
keys_uri, # type: str
275275
):
276-
# pylint: disable=too-many-locals
276+
# pylint: disable=too-many-locals,too-many-branches
277277
# type: (...) -> MessageDecryptionTestScenario
278278
"""Load from a scenario specification.
279279
@@ -336,8 +336,8 @@ def master_key_provider_fn():
336336
# Caller logic should expect `None` to mean "no scenario".
337337
if master_key_provider_fn() is None:
338338
return None
339-
except Exception as e:
340-
# If there is some exception when loading the key, continue to create the test scenario.
339+
except Exception: # pylint: disable=broad-exception
340+
# If there is any exception when loading the key, continue to create the test scenario.
341341
# Some test scenarios have bad keys that should fail during the test execution.
342342
pass
343343

test_vector_handlers/src/awses_test_vectors/manifests/mpl_keyring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def from_scenario(cls, spec):
9090
padding_hash=spec.get("padding-hash"),
9191
)
9292

93-
def keyring(self, keys_uri, mode):
93+
def keyring(self, keys_uri, mode): # pylint: disable=too-many-branches
9494
# type: (KeysManifest) -> IKeyring
9595
"""Build a keyring using this specification.
9696
:param str keys_uri: Path to the keys manifest

0 commit comments

Comments
 (0)