mysql's apport hook's add_info() routine needs to handle 2nd parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-8.0 (Ubuntu) |
Fix Released
|
Undecided
|
Bryce Harrington |
Bug Description
As seen in https:/
Traceback (most recent call last):
File "/usr/lib/
symb[
TypeError: add_info() takes 1 positional argument but 2 were given
This is resolving to call this routine in source_
def add_info(report):
attach_
...
However it's being called like:
try:
except TypeError as e:
if str(e).
# older versions of apport did not pass UI, and hooks that
# do not require it don't need to take it
else:
So, while the older form of the call supports the single-arg version, the apport hook should probably be updated to handle the newer calling syntax.
Related branches
- Lena Voytek (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 118 lines (+59/-16)2 files modifieddebian/additions/source_mysql-8.0.py (+46/-16)
debian/changelog (+13/-0)
Changed in mysql-8.0 (Ubuntu): | |
status: | Triaged → Fix Committed |
Thanks for the report, Bryce. I've assigned this to you since we discussed this during the standup today.
However, I am curious, what does the "ui" parameter do? It's not really clear to me, maybe you'd know? Also, do you happen to know other packages that uses apport like mysql? I'd be very interested to see how things change with different packages?
Thank you!