Commit 7c8f541
authored
Resolve AttributeError in issue_filer.py (#5154)
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.1 parent c31c50c commit 7c8f541
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
| 331 | + | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| |||
492 | 493 | | |
493 | 494 | | |
494 | 495 | | |
495 | | - | |
496 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
| |||
0 commit comments