[Bug 1769262] Re: PythonDetails contains an error message if python not installed
Brian Murray
brian at ubuntu.com
Fri May 4 20:33:20 UTC 2018
This'll make it look nicer.
@@ -519,6 +519,9 @@
def add_python_details(key, python, report):
'''Add comma separated details about which python is being used'''
python_path = apport.hookutils.command_output(['which', python])
+ if python_path.startswith('Error: '):
+ report[key] = 'N/A'
+ return
python_link = apport.hookutils.command_output(['readlink', '-f',
python_path])
python_pkg = apport.fileutils.find_file_package(python_path)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1769262
Title:
PythonDetails contains an error message if python not installed
Status in apport package in Ubuntu:
New
Bug description:
[Test Case]
0) ensure python is not installed on the system
1) launchpad update-manager
2) kill update-manager
3) view the crash report
With the version of apport in the archive you will see messy
PythonDetails like below. With the version of apport from -proposed
you will instead see:
PythonDetails: N/A
Original Description
--------------------
In an Ubuntu 18.04 apport-package report, bug 1768866, we can see the following which looks super messy:
PythonDetails: /root/Error: command ['which', 'python'] failed with
exit code 1:, Error: [Errno 2] Aucun fichier ou dossier de ce type:
"/root/Error: command ['which', 'python'] failed with exit code 1:":
"/root/Error: command ['which', 'python'] failed with exit code 1:",
unpackaged
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1769262/+subscriptions
More information about the foundations-bugs
mailing list