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

'NoneType' object has no attribute 'is_ambiguous' when using today().add(years=-50) #360

Closed
dekoza opened this issue Mar 28, 2019 · 1 comment

Comments

@dekoza
Copy link

dekoza commented Mar 28, 2019

Lib versions:
pendulum==2.04

How to reproduce:
pendulum.today().add(years=-50)

Risen exception:

/usr/local/lib/python3.6/site-packages/pendulum/tz/timezone.py in _normalize(self, dt, dst_rule)
    109                 transition = transition.previous
    110 
--> 111         if transition.is_ambiguous(sec):
    112             # Ambiguous time
    113             if dst_rule == TRANSITION_ERROR:

AttributeError: 'NoneType' object has no attribute 'is_ambiguous'
@pR0Ps
Copy link
Contributor

pR0Ps commented Mar 11, 2020

I'm pretty sure this can be closed - it seems fixed by #321 and #350

@dekoza dekoza closed this as completed Oct 20, 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