Public bug reported:

As seen in
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1922143,

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 227, in _run_hook
    symb['add_info'](report, ui)
TypeError: add_info() takes 1 positional argument but 2 were given

This is resolving to call this routine in source_mysql-8.0.py:

def add_info(report):
    attach_conffiles(report, 'mysql-server-8.0', conffiles=None)
    ...

However it's being called like:

        try:
            symb['add_info'](report, ui)
        except TypeError as e:
            if str(e).startswith('add_info()'):
                # older versions of apport did not pass UI, and hooks that      
                                              
                # do not require it don't need to take it                       
                                              
                symb['add_info'](report)
            else:
                raise

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.

** Affects: mysql-8.0 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922413

Title:
  mysql's apport hook's add_info() routine needs to handle 2nd parameter

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1922413/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to