Files
romm/backend/handler
cfranz-medsoto 332643b5d2 Fix scan failure when ROM name is missing (#5377)
### 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.
2026-10-29 12:09:51 -04:00
..