[Bug 1438242] Re: parse() on an invalid time string no longer raises ValueError
Launchpad Bug Tracker
1438242 at bugs.launchpad.net
Mon Mar 30 14:45:16 UTC 2015
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: python-dateutil (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-dateutil in Ubuntu.
https://bugs.launchpad.net/bugs/1438242
Title:
parse() on an invalid time string no longer raises ValueError
Status in python-dateutil:
New
Status in python-dateutil package in Ubuntu:
Confirmed
Bug description:
utopic:
⟫ python -c "from dateutil.parser import parse; parse('X')"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 697, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 303, in parse
raise ValueError, "unknown string format"
ValueError: unknown string format
vivid:
$ python -c "from dateutil.parser import parse; parse('X')"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 748, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/usr/lib/python2.7/dist-packages/dateutil/parser.py", line 310, in parse
res, skipped_tokens = self._parse(timestr, **kwargs)
TypeError: 'NoneType' object is not iterable
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: python-dateutil 2.2-2
ProcVersionSignature: User Name 3.19.0-10.10-generic 3.19.2
Uname: Linux 3.19.0-10-generic x86_64
ApportVersion: 2.16.2-0ubuntu5
Architecture: amd64
Date: Mon Mar 30 14:41:44 2015
PackageArchitecture: all
SourcePackage: python-dateutil
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/dateutil/+bug/1438242/+subscriptions
More information about the foundations-bugs
mailing list