Skip to content

fix: add error handling in audit_service.py get_ticket_audit_logs method #713

@tmdeveloper007

Description

@tmdeveloper007

Issue Description

The get_ticket_audit_logs method in backend/services/audit_service.py directly calls Supabase without any try/except wrapper. If the database query fails, the exception propagates unhandled to the caller.

Expected Fix

Wrap the supabase query in a try/except block and raise AuditLogAccessError on failure.

Files to Modify

  • backend/services/audit_service.py (lines 15-22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions