Skip to content

Commit 72d0bb0

Browse files
committed
Fixed function returns.
1 parent d42ba88 commit 72d0bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codesafe/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def decrypt(encrypted_code:str, mapping: dict =_character_map) -> str:
315315
except Exception as e:
316316
raise RuntimeError(f"An error occurred during decryption: {e}")
317317

318-
def run(encrypted_file: str, mapping: dict = _character_map) -> bool:
318+
def run(encrypted_file: str, mapping: dict = _character_map) -> None:
319319
"""
320320
Decrypt and execute the Python code embedded in the specified file.
321321
@@ -343,7 +343,7 @@ def run(encrypted_file: str, mapping: dict = _character_map) -> bool:
343343
except Exception as e:
344344
raise RuntimeError(f"An error occurred during decryption and execution: {e}")
345345

346-
def decrypt_to_file(encrypted_file: str, output_file: str, mapping: dict = _character_map) -> bool:
346+
def decrypt_to_file(encrypted_file: str, output_file: str, mapping: dict = _character_map) -> None:
347347
"""
348348
Decrypt the code embedded in the specified file and write it to an output file.
349349

0 commit comments

Comments
 (0)