Package: undertime
Version: 2.6.0
Severity: grave
Justification: renders package unusable
Hello,
I'm currently getting stack traces consistently when using undertime. No matter
the timezone that I request, I get a stack trace with a TypeError exception:
$ undertime pt
Traceback (most recent call last):
File "/usr/bin/undertime", line 994, in <module>
main(args)
File "/usr/bin/undertime", line 733, in main
timezones += filter(None, [guess_zone(z) for z in args.timezones])
TypeError: 'NoneType' object is not iterable
$ undertime PST
WARNING: date provided cannot be parsed: PST
Traceback (most recent call last):
File "/usr/bin/undertime", line 994, in <module>
main(args)
File "/usr/bin/undertime", line 733, in main
timezones += filter(None, [guess_zone(z) for z in args.timezones])
TypeError: 'NoneType' object is not iterable
If I run that last command with pdb,
e.g. python3 -m pdb /usb/bin/undertime PST
and then (r)un the program until the error, I can see that args.timezones is
set to None:
(Pdb) type(args.timezones)
<class 'NoneType'>
now from there, I tried using "undertime -t PST" and that actually worked. So
there must be something off with the default value to -t
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.14.0-1-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages undertime depends on:
ii python3 3.9.2-3
ii python3-dateparser 1.0.0-1
ii python3-ephem 4.1-1
ii python3-tabulate 0.8.7-0.1
ii python3-termcolor 1.1.0-3
ii python3-tz 2021.3-1
ii python3-yaml 5.3.1-5
undertime recommends no packages.
undertime suggests no packages.
-- no debconf information