Skip to content

Commit 489566d

Browse files
committed
Fixed formatting
1 parent c0ea028 commit 489566d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

conversions/base64_to_binary.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ def base64_to_bin(base64_str: str) -> str:
9292
b64_str = b64_str[1:]
9393
bin_str = ""
9494
for i, x in enumerate(b64_str):
95-
if not x in B64_TO_BITS:
96-
raise ValueError(f"Invalid base64 string. Invalid char {x} at pos {i}")
95+
if x not in B64_TO_BITS:
96+
exception_message = f"Invalid base64 string. Invalid char {x} at pos {i}"
97+
raise ValueError(exception_message)
9798
bin_str += B64_TO_BITS[x]
9899
if is_negative:
99100
bin_str = "-" + bin_str

0 commit comments

Comments
 (0)