Skip to content

Fix for Missing call to superclass __init__ during object initialization#9634

Draft
ThomasWaldmann wants to merge 1 commit into
masterfrom
finding-autofix-59e7d13e
Draft

Fix for Missing call to superclass __init__ during object initialization#9634
ThomasWaldmann wants to merge 1 commit into
masterfrom
finding-autofix-59e7d13e

Conversation

@ThomasWaldmann
Copy link
Copy Markdown
Member

The fix is to call the superclass initializer in BackupOSError.__init__, passing the same logical message components this error represents (op and os_error). This preserves current functionality while ensuring proper initialization of the exception base classes (BackupErrorErrorBaseException), including consistent args population.

In src/borg/helpers/errors.py, edit only BackupOSError.__init__ (lines around 155–161). Add super().__init__(op, os_error) as the first statement in that initializer, then keep the existing attribute assignments unchanged.

No new imports, methods, or dependencies are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…ation

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ThomasWaldmann ThomasWaldmann force-pushed the finding-autofix-59e7d13e branch from 436df28 to 808a264 Compare May 13, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant