From 7e9f2afa8e7e0a78e7d909f96434ff5d6bcf0bb4 Mon Sep 17 00:00:00 2001 From: BamaCharanChhandogi Date: Sun, 20 Aug 2023 15:28:16 +0530 Subject: [PATCH] error in exit 1 --- conversions/octal_to_binary.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conversions/octal_to_binary.py b/conversions/octal_to_binary.py index 18929beb6..202abafaf 100644 --- a/conversions/octal_to_binary.py +++ b/conversions/octal_to_binary.py @@ -19,7 +19,7 @@ def octal_to_binary(octal_number: str) -> str: Traceback (most recent call last): ... ValueError: Non-octal value was passed to the function - + >>> octal_to_binary("@#") Traceback (most recent call last): ... @@ -30,7 +30,7 @@ def octal_to_binary(octal_number: str) -> str: ValueError: Empty string was passed to the function """ if not octal_number: - raise ValueError("Empty String was passed to the function") + raise ValueError("Empty string was passed to the function") binary_number = "" octal_digits = "01234567" @@ -50,5 +50,4 @@ def octal_to_binary(octal_number: str) -> str: if __name__ == "__main__": import doctest - doctest.testmod()