Whole file
rockem/busypie
The author described this change as “fix: [#54] Using ignore_exception with until_asserted raising an AttributionError (#74)”. It counts as a record because the check below fails on the code as it stood at 87cadd87d and passes on abb7ca198, with nothing else changed between the two runs.
Projectrockem/busypie
Fix saved2026-01-24
Sharing licenceApache-2.0 · LICENSE
Change size+3 −2
What the code was meant to do, written into the code itself as a save note
fix: [#54] Using ignore_exception with until_asserted raising an AttributionError (#74)
The change
| 99 | 99 | ||
| 100 | 100 | def append_exception(self, exception: Type[Exception]): | |
| 101 | 101 | if self.ignored_exceptions is None: | |
| 102 | - | self.ignored_exceptions = [] | |
| 103 | - | self.ignored_exceptions.append(exception) | |
| 102 | + | self.ignored_exceptions = [exception] | |
| 103 | + | elif self.ignored_exceptions: # Only append if not empty (empty = ignore all) | |
| 104 | + | self.ignored_exceptions.append(exception) | |
| 104 | 105 | ||
| 105 | 106 | def __eq__(self, other): | |
| 106 | 107 | if not isinstance(other, Condition): |
The check that tells the two apart
fail→pass·tests/test_asserted.py::test_ignore_all_exceptions_with_until_asserted
Check file tests/test_asserted.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it87cadd87daaa0e6221de76bc3ebeb7080bb47121
Broken version dated2026-01-24
Modulebusypie.condition
Units changedCondition
Fingerprint4bec72ab255a6723
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.