Skip to content

Commit 94c76a6

Browse files
committed
Handle HEX-file not found error
1 parent ad7d984 commit 94c76a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcbootflash/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def parse_hex(hex_file: str, boot_attr: BootAttrs) -> tuple[int, Iterator[Chunk]
319319
"""
320320
try:
321321
return chunked(hex_file, boot_attr)
322-
except bincopy.Error as exc:
322+
except (bincopy.Error, FileNotFoundError) as exc:
323323
raise HandledException("Error: " + str(exc)) from exc
324324

325325

0 commit comments

Comments
 (0)