Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Zurdi
2026-06-22 18:03:51 +02:00
committed by GitHub
parent 8c20fd6547
commit b282a4cac7

View File

@@ -93,7 +93,7 @@ def resolve_module_name(record: logging.LogRecord) -> str:
package — the parent directory name — so it reads as ``roms`` instead.
"""
explicit = getattr(record, "module_name", None)
if explicit:
if explicit is not None:
return str(explicit)
module = record.module