We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3760214 commit 187ca44Copy full SHA for 187ca44
1 file changed
src/flip_coins.py
@@ -27,7 +27,7 @@ def flip_coin(chosen_side: str) -> pandas.DataFrame:
27
"""
28
# Validate chosen side
29
if not isinstance(chosen_side, str):
30
- raise ValueError("chosen_side must be a string")
+ raise TypeError("chosen_side must be a string")
31
if len(chosen_side) < 1:
32
raise ValueError("chosen_side cannot be an empty string")
33
if chosen_side not in ["heads", "tails"]:
0 commit comments