Skip to content

Commit 7bb939f

Browse files
cleanup
1 parent 3cd9bf3 commit 7bb939f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/aws_encryption_sdk/streaming_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def _create_decrypt_materials_request(self, header):
963963
# If encryption_context is provided on decrypt,
964964
# pass it to the DecryptionMaterialsRequest as reproduced_encryption_context
965965
if hasattr(self.config, "encryption_context") \
966-
and self.config.encryption_context is not None:
966+
and self.config.encryption_context is not None:
967967
if (_HAS_MPL
968968
and isinstance(self.config.materials_manager, CryptoMaterialsManagerFromMPL)):
969969
return DecryptionMaterialsRequest(
@@ -974,7 +974,7 @@ def _create_decrypt_materials_request(self, header):
974974
reproduced_encryption_context=self.config.encryption_context
975975
)
976976
else:
977-
raise TypeError("encryption_context on decrypt is only supported for CMMs and keyrings "\
977+
raise TypeError("encryption_context on decrypt is only supported for CMMs and keyrings "
978978
"from the aws-cryptographic-material-providers library.")
979979
return DecryptionMaterialsRequest(
980980
encrypted_data_keys=header.encrypted_data_keys,

test/unit/test_streaming_client_stream_decryptor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def test_GIVEN_decrypt_config_has_ec_AND_no_mpl_WHEN_read_header_THEN_raise_Type
264264
test_decryptor.config.encryption_context = any_reproduced_ec
265265

266266
# Then: raise TypeError
267-
with pytest.raises(TypeError) as excinfo:
267+
with pytest.raises(TypeError):
268268
# When: read header
269269
test_decryptor._read_header()
270270

0 commit comments

Comments
 (0)