mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
### Summary Prevent ROM scanning from failing when the `name` field is missing from `rom_attrs`. The identification log message now falls back to `fs_name` when `name` is unavailable. This avoids a `KeyError` during scanning while preserving the existing log output for ROMs that have a name. ### Motivation During a library scan, RomM raised a `KeyError: 'name'` in `scan_rom()` when attempting to log a successfully identified ROM. This caused the affected ROM's scan to fail. Using `fs_name` as a fallback allows the scan to continue even when the metadata name is missing. ### Testing - Reproduced the issue during a ROM library scan. - Verified that scanning completed successfully after applying the fallback. ### AI assistance AI assistance was used to help investigate the error. The fix was tested locally against the affected RomM installation.