Package: installation-birthday
Version: 17
Severity: normal

Every time the cron job is being run, I get the following:

/etc/cron.daily/installation-birthday:
Traceback (most recent call last):
  File "/usr/bin/installation-birthday", line 224, in <module>
    sys.exit(Birthday().main())
             ^^^^^^^^^^^^^^^^^
  File "/usr/bin/installation-birthday", line 68, in main
    install = self.get_installation_datetime()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/installation-birthday", line 175, in get_installation_datetime
    if dt is None or candidate < dt:
                     ^^^^^^^^^^^^^^
TypeError: can't compare offset-naive and offset-aware datetimes
run-parts: /etc/cron.daily/installation-birthday exited with return code 1

It appears to be working fine from the command line:

$ installation-birthday
I: Installation date: 2014-05-16
$ installation-birthday --verbosity=0
$ echo $?
0

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32

Kernel: Linux 6.9.7-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages installation-birthday depends on:
ii  e2fsprogs       1.47.1-1
ii  python3         3.12.2-1
ii  python3-distro  1.9.0-1

installation-birthday recommends no packages.

installation-birthday suggests no packages.

-- no debconf information

Reply via email to