Skip to content

🪲 BUG-#216: Fix traceback_error ignoring error parameter#225

Merged
FernandoCelmer merged 3 commits intodevelopfrom
feature/216
Apr 9, 2026
Merged

🪲 BUG-#216: Fix traceback_error ignoring error parameter#225
FernandoCelmer merged 3 commits intodevelopfrom
feature/216

Conversation

@FernandoCelmer
Copy link
Copy Markdown
Member

Description

Fix traceback_error() which accepted an error parameter but never used it, relying on sys.exc_info() instead. This produced empty/wrong tracebacks when called outside an active except block.

Issue: 📌 ISSUE-#216

Changes

  • Replace sys.exc_info() + format_stack() with traceback.format_exception(type(error), error, error.__traceback__)
  • Remove unused import sys
  • Traceback now always reflects the actual error, regardless of call context

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@FernandoCelmer FernandoCelmer added bug Something isn't working significant Significant severity labels Apr 9, 2026
@FernandoCelmer FernandoCelmer self-assigned this Apr 9, 2026
@FernandoCelmer FernandoCelmer merged commit b927056 into develop Apr 9, 2026
10 checks passed
@FernandoCelmer FernandoCelmer deleted the feature/216 branch April 9, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working significant Significant severity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant