mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2701 from emmanuel-ferdman/master
tools/mkromfs.py: Fix exception formatting
This commit is contained in:
commit
1ae6e0336f
@ -129,7 +129,7 @@ def romfs_build(romfs_cfg, p, args):
|
||||
print(
|
||||
f"Partition size: {romfs_size/1024:.1f} KiB"
|
||||
f"ROMFS Size: {len(romfs_data)/1024:.1f} KiB{CN}")
|
||||
raise Exception("{CR}romfs partition overflow{CN}")
|
||||
raise Exception(f"{CR}romfs partition overflow{CN}")
|
||||
romfs_file.write(romfs_data)
|
||||
|
||||
print(f"{CB}romfs image: {CR}\"romfs{p}.img\" {CB}usage: "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user