Skip to content

Resolve AttributeError in issue_filer.py#5154

Open
AashutoshMurthy wants to merge 1 commit intogoogle:masterfrom
ittiam-systems:resolve_attribute_error
Open

Resolve AttributeError in issue_filer.py#5154
AashutoshMurthy wants to merge 1 commit intogoogle:masterfrom
ittiam-systems:resolve_attribute_error

Conversation

@AashutoshMurthy
Copy link
Contributor

Safeguard the process of issue filing by ensuring the presence of attributes within Issue variants before accessing them.

This issue occurs due to the changes made in #5074. #5074 adds debugging logs, and one of the logs tries to access an attribute (component_id) of a class (Issue), resulting in the following error:
'Issue' object has no attribute 'component_id'

This issue has blocked the issue filing process.

The current changes aim to resolve this issue using getattr(), which checks if an attribute exists and only then accesses it.

@svasudevprasad
Copy link
Collaborator

/gcbrun

@cemon721-a11y
Copy link

Thanks for the quick fix! Using getattr() to handle the missing attribute looks like the right approach. This will unblock our workflow."

Copy link

@cemon721-a11y cemon721-a11y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix! Using getattr() to handle the missing attribute looks like the right approach. This will unblock our workflow."

Safeguard the process of issue filing by ensuring presence
of attributes within Issue variants before accessing them.
@AashutoshMurthy AashutoshMurthy force-pushed the resolve_attribute_error branch from 142a2e8 to 004a423 Compare February 4, 2026 02:50
@svasudevprasad
Copy link
Collaborator

/gcbrun

@cemon721-a11y
Copy link

cemon721-a11y commented Feb 4, 2026 via email

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.

4 participants