Fallback to None for AuditLogAction.category

This commit is contained in:
Rapptz
2025-08-22 19:14:01 -04:00
parent 60fd97bfda
commit cb364ea113

View File

@@ -488,7 +488,7 @@ class AuditLogAction(Enum):
AuditLogAction.home_settings_update: AuditLogActionCategory.update,
}
# fmt: on
return lookup[self]
return lookup.get(self, None)
@property
def target_type(self) -> Optional[str]: