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 is not iterable exception for yyyy/m/d date format #2

Open
alvaromorales opened this issue Apr 5, 2016 · 0 comments

Comments

@alvaromorales
Copy link

Dates of format yyyy/m/d cause a TypeError. This input format should be handled, or a more specific exception should be raised.

>>> from overlay_parse import dates
>>> dates.just_dates('1821/5/5')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/overlay_parse/dates.py", line 282, in just_dates
  File "build/bdist.linux-x86_64/egg/overlay_parse/dates.py", line 271, in just_props
  File "build/bdist.linux-x86_64/egg/overlay_parse/overlays.py", line 189, in overlay
  File "build/bdist.linux-x86_64/egg/overlay_parse/matchers.py", line 182, in offset_overlays
  File "build/bdist.linux-x86_64/egg/overlay_parse/matchers.py", line 151, in _merge_ovls
  File "build/bdist.linux-x86_64/egg/overlay_parse/matchers.py", line 23, in value
  File "build/bdist.linux-x86_64/egg/overlay_parse/dates.py", line 48, in date_conditional
TypeError: 'NoneType' object is not iterable
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