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

tzinfo utcoffset taking None as parameter #255

Open
atifshafihpe opened this issue Jul 28, 2023 · 0 comments
Open

tzinfo utcoffset taking None as parameter #255

atifshafihpe opened this issue Jul 28, 2023 · 0 comments

Comments

@atifshafihpe
Copy link

atifshafihpe commented Jul 28, 2023

i am getting this error in production environment, in local it seems to be running fine

File "/home/post-api-v2/venv/lib/python3.8/site-packages/redbeat/decoder.py", line 84, in default

further checking the code
i located these lines


 elif hasattr(obj.tzinfo, 'key'):
    timezone = obj.tzinfo.key
else:
    timezone = obj.tzinfo.utcoffset(None).total_seconds()
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

1 participant