Skip to content

fix: avoid Exception.message for $Error.message in Python 3#139

Merged
yndu13 merged 1 commit into
masterfrom
feature/aone-78058866-error-message
Jul 20, 2026
Merged

fix: avoid Exception.message for $Error.message in Python 3#139
yndu13 merged 1 commit into
masterfrom
feature/aone-78058866-error-message

Conversation

@yndu13

@yndu13 yndu13 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Untyped catch is emitted as except Exception, but Python 3's base Exception has no message attribute.
  • $Error.message now generates getattr(error, 'message', str(error)) instead of error.message.
  • Added fixture/expected coverage for catch + typed $Error message access.

Untyped catch is emitted as except Exception, but Python's base Exception
has no message attribute. Emit getattr(error, 'message', str(error)) instead.
@yndu13
yndu13 merged commit a696bbd into master Jul 20, 2026
9 checks passed
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