Skip to content

fix : correct additional_data truthiness check in error_logger.log_exception #1859

Description

@tmdeveloper007

Summary of What Needs to be Done

In , the function uses to guard the line . This is incorrect because an empty dict is falsy in Python, so would NOT be included in the payload even though it was explicitly passed. The correct check should be .

Changes that Need to be Made

Change to in the function.

Impact that it would Provide

  • Empty dicts passed as will now correctly be included in the log payload.
  • Prevents silent data loss when callers pass .

Note: Please assign this issue to the tmdeveloper007 account.

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