-
Notifications
You must be signed in to change notification settings - Fork 132
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
Updated to 2.1.1 from 2.0.0 now it fails to run. #251
Comments
Seeing the same error. For now, pinning the version to 2.0.0. |
It looks like the logic was if no known timezone, then encode the timezone as a UTC offset. I'm not sure what the correct equivalent behaviour should be. What are the timezone settings you are using? |
According to sentry obj is: |
import datetime
import pytz
eu_ams = pytz.timezone('Europe/Amsterdam')
obj = eu_ams.localize(datetime.datetime(2023, 6, 20, 14, 23, 1, 599274)) Gives me a datetime object as given there. The correct way would be: obj.tzinfo.utcoffset(obj).total_seconds() which gives But the better way would be to just use the datetime object directly: obj.utcoffset().total_seconds() |
We had the same issue and resolved it by pinning to |
So, am I to understand this is fixed in 2.2.0? |
On this line:
https://github.com/sibson/redbeat/blame/2012b23f890ad5a25e082b03daf8a4a2a3db6536/redbeat/decoder.py#L84
with
AttributeError: 'NoneType' object has no attribute 'total_seconds'
Why would the timezone be set to a number of seconds anyway?
The text was updated successfully, but these errors were encountered: