Skip to content

Commit 8a9b2e4

Browse files
wachawoCopilot
andauthored
Update lancalc/main.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a99b02e commit 8a9b2e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lancalc/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def validate_prefix(prefix_str: str) -> int:
259259
try:
260260
p = int(prefix_str)
261261
except ValueError:
262-
raise ValueError(f"Invalid prefix format: {prefix_str}")
262+
p = int(prefix_str)
263263

264264
if not 0 <= p <= 32:
265265
raise ValueError(f"Prefix must be between 0 and 32, got: {p}")

0 commit comments

Comments
 (0)