[Bug 1978487] Re: attach_journal_errors is causing a ValueError crash

Launchpad Bug Tracker 1978487 at bugs.launchpad.net
Mon Jun 27 14:31:06 UTC 2022


This bug was fixed in the package apport - 2.22.0-0ubuntu1

---------------
apport (2.22.0-0ubuntu1) kinetic; urgency=medium

  * New upstream release:
    - Replace `ProblemReport.get_date` by `ProblemReport.get_timestamp`, fixes
      regression in 2.21.0 (LP: #1978487)
    - apport-gtk: Exclude trailing dot from URL links (LP: #1978301)
    - Fix `AttributeError`: 'NoneType' object has no attribute 'write', fixes
      regression in 2.21.0 (LP: #1979211)
    - apport_python_hook: Properly handle missing modules (LP: #1774843)
    - apport_python_hook: Fix FileNotFoundError if the current directory was
      deleted (LP: #1979637)
    - apport_python_hook: Fix crash if os.getcwd() fails (LP: #1977954)
    - Replace deprecated 'imp' module (LP: #1947425)
    - whoopsie-upload-all: Fix 'EOFError' object has no attribute 'errno',
      fixes regression in 2.21.0 (LP: #1979681)
  * Fix KeyError: 'CasperMD5json'

 -- Benjamin Drung <bdrung at ubuntu.com>  Mon, 27 Jun 2022 12:03:00 +0200

** Changed in: apport (Ubuntu Kinetic)
       Status: New => Fix Released

-- 
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/1978487

Title:
  attach_journal_errors is causing a ValueError crash

Status in Apport:
  Fix Released
Status in apport package in Ubuntu:
  Fix Released
Status in apport source package in Kinetic:
  Fix Released

Bug description:
  As seen in https://bugs.launchpad.net/ubuntu/+source/obs-
  studio/+bug/1978414 with ApportVersion: 2.21.0-0ubuntu2.

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 205, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/general-hooks/generic.py", line 94, in add_info
      apport.hookutils.attach_journal_errors(report)
    File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 740, in attach_journal_errors
      crash_time = report.get_date()
    File "/usr/lib/python3/dist-packages/problem_report.py", line 268, in get_date
      return datetime.datetime.strptime(self['Date'], '%a %b %d %H:%M:%S %Y')
    File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
      tt, fraction, gmtoff_fraction = _strptime(data_string, format)
    File "/usr/lib/python3.10/_strptime.py", line 349, in _strptime
      raise ValueError("time data %r does not match format %r" %
  ValueError: time data 'Sun Jun 12 19:52:55 2022' does not match format '%a %b %d %H:%M:%S %Y'

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1978487/+subscriptions




More information about the foundations-bugs mailing list