Public bug reported:
Location: DistUpgradeViewGtk3.py, line 714, in confirmChanges()
Error:
TypeError: Argument 0 does not allow None as a value
Cause:
confirmChanges() passes the result of getattr(pkg.candidate, "summary", None)
to GLib.markup_escape_text(). When a package has no candidate or no summary,
this is None. GLib.markup_escape_text() expects a string and does not accept
None, so it raises the above TypeError.
When it happens:
During a distribution upgrade or partial upgrade when the GTK3 UI shows the
confirmation dialog and one of the packages in the change list has a missing or
empty summary.
Impact:
The upgrade UI crashes instead of showing the confirmation dialog, blocking the
upgrade.
Fix:
Ensure a string is always passed to GLib.markup_escape_text(), e.g. by using an
empty string when the summary is None:
GLib.markup_escape_text(getattr(pkg.candidate, "summary", None) or "")
Status:
No matching bug found on Launchpad; this appears to be a new report.
** Affects: ubuntu-release-upgrader (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/2144546
Title:
GLib.markup_escape_text TypeError in DistUpgradeViewGtk3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2144546/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs