Skip to content

Commit

Permalink
Add assertion in copy_part
Browse files Browse the repository at this point in the history
  • Loading branch information
mlech-reef committed Mar 25, 2021
1 parent 0cb5344 commit 20327ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions b2sdk/raw_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ def copy_part(
_add_range_header(range_dict, bytes_range)
kwargs['range'] = range_dict['Range']
if destination_server_side_encryption is not None:
assert destination_server_side_encryption.mode != EncryptionMode.SSE_B2
kwargs['destinationServerSideEncryption'
] = destination_server_side_encryption.as_value_dict()
return self._post_json(
Expand Down

0 comments on commit 20327ab

Please sign in to comment.