Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: raise "gdb not found" as soon as detected (LP: #2031919) #220

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

schopin-pro
Copy link
Contributor

The previous version would actually simply return invalid values instead
of raising, and the code that would raise would first use said values,
leading to crashes, despair, and bug reports.

In addition, this PR contains some more type hints (that would have caught this!!) and a small drive-by cosmetic fix.

The previous version would actually simply return invalid values instead
of raising, and the code that would raise would first *use* said values,
leading to crashes, despair, and bug reports.

Fixes LP: #2031919
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #220 (01d3ce8) into main (cf37c66) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
- Coverage   82.81%   82.81%   -0.01%     
==========================================
  Files          91       91              
  Lines       18706    18713       +7     
==========================================
+ Hits        15492    15497       +5     
- Misses       3214     3216       +2     
Files Changed Coverage Δ
apport/report.py 85.43% <100.00%> (+0.07%) ⬆️
tests/unit/test_report.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@bdrung bdrung merged commit 70d15ac into canonical:main Aug 24, 2023
24 of 25 checks passed
@schopin-pro schopin-pro deleted the lp2031919 branch February 13, 2024 14:08
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.

2 participants