Commit 5397bd2b authored by Andreas Jung's avatar Andreas Jung

re-raising other exceptions during parsing phase

parent 490cf082
......@@ -501,6 +501,8 @@ class DateTime:
try:
return self._parse_args(*args, **kw)
except (DateError, TimeError, DateTimeError):
raise
except:
raise SyntaxError('Unable to parse %s, %s' % (args, kw))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment