Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clock module not compatible with tzlocal 3.0 #2061

Closed
flyingapfopenguin opened this issue Aug 16, 2021 · 1 comment
Closed

clock module not compatible with tzlocal 3.0 #2061

flyingapfopenguin opened this issue Aug 16, 2021 · 1 comment

Comments

@flyingapfopenguin
Copy link
Contributor

After upgrading tzlocal to version 3.0 my clock isn't working anymore and the log says

2021-08-16 14:29:58 INFO Traceback
AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'zone'
  File "/usr/lib/python3.9/site-packages/py3status/module.py", line 948, in run
    response = method()
  File "/usr/lib/python3.9/site-packages/py3status/modules/clock.py", line 268, in clock
    timezone = zone.zone

So, I guess, the code of the module isn't compatible to this version of tzlocal.
Downgrading tzlocal to version 2.1 fixes the problem.

@ultrabug
Copy link
Owner

Thank you @flyingapfopenguin , it will be compatible with both versions on the next py3status release thanks to you!

rlerm pushed a commit to rlerm/py3status that referenced this issue Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants