Skip to content

logger.exception call in saveBayesianPlot has format/arg mismatch #312

Description

@rozyczko

Source: EasyReflectometryApp/Backends/Py/analysis.py:1354 — DEEP_ANALYSIS.md §5 item 1

logger.exception('Failed to save Bayesian plot to %s', save_path, exc)

The format string has one %s but two arguments are passed (save_path, exc). The logging call itself raises a formatting error (caught and printed by the logging machinery) every time this error path runs.

Fix: Drop exclogger.exception already appends the traceback.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions