Skip to content

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

Closed

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 exc — logger.exception already appends the traceback.

Activity

  1. added
    [scope] bug
    [priority] low
    on Jun 17, 2026
  2. added a commit that references this issue on Jun 18, 2026
  3. added a commit that references this issue on Jul 15, 2026
    16e1b45
  4. added 2 commits that reference this issue on Aug 3, 2026
    1418142
    9cd8256
  5. added a commit that references this issue on Oct 19, 2026
    99e460d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] low[scope] bugbayesian-analysis

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions