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.
2 parents 8658620 + 76bb23d commit 33cce59Copy full SHA for 33cce59
py/bitbox02/bitbox02/communication/devices.py
@@ -160,6 +160,6 @@ def get_any_bitbox02_bootloader() -> DeviceInfo:
160
def parse_device_version(serial_number: str) -> semver.VersionInfo:
161
match = re.search(r"v([0-9]+\.[0-9]+\.[0-9]+.*)", serial_number)
162
if match is None:
163
- return None
+ raise Exception(f"Could not parse version string from serial_number: {serial_number}")
164
165
return semver.VersionInfo.parse(match.group(1))
0 commit comments