We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6dd098 commit 82243cdCopy full SHA for 82243cd
ciphers/enigma_machine2.py
@@ -125,7 +125,8 @@ def _plugboard(pbstring: str) -> dict:
125
# b) has even length (so pairs can be made)
126
if not isinstance(pbstring, str):
127
raise TypeError(
128
- f"Plugboard setting isn't type string ({type(pbstring)})")
+ f"Plugboard setting isn't type string ({type(pbstring)})"
129
+ )
130
elif len(pbstring) % 2 != 0:
131
raise Exception(f"Odd number of symbols ({len(pbstring)})")
132
elif pbstring == "":
0 commit comments