From a9799de1ba6fbbb5a1a89a9b6fb4651efa8e8617 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 13 Jul 2022 06:07:08 -0400 Subject: [PATCH] Island: Remove extra ')' from strings --- .../cc/server_utils/encryption/repository_encryptor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py b/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py index 73e054289..c53d6e38b 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py +++ b/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py @@ -60,12 +60,12 @@ class RepositoryEncryptor(ILockableEncryptor): def encrypt(self, plaintext: bytes) -> bytes: if self._key_based_encryptor is None: - raise LockedKeyError("Cannot encrypt while the encryptor is locked)") + raise LockedKeyError("Cannot encrypt while the encryptor is locked") return self._key_based_encryptor.encrypt(plaintext) def decrypt(self, ciphertext: bytes) -> bytes: if self._key_based_encryptor is None: - raise LockedKeyError("Cannot decrypt while the encryptor is locked)") + raise LockedKeyError("Cannot decrypt while the encryptor is locked") return self._key_based_encryptor.decrypt(ciphertext)