[ZCM] [ZC] 1712/ 2 Comment "Inconsistent and sometimes incomprehensible error messages from bad dates"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Feb 25 09:40:14 EST 2005


Issue #1712 Update (Comment) "Inconsistent and sometimes incomprehensible error messages from bad dates"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1712

==============================================================
= Comment - Entry #2 by rjmunro on Feb 25, 2005 9:40 am

I got the version wrong, I was actually using version 2.7.1. Things are improved in 2.7.4, but it can give "SyntaxError" instead of "DateError" under some circumstances.
________________________________________
= Request - Entry #1 by rjmunro on Feb 25, 2005 8:54 am

x = DateTime("99/99/99")
gives the excepton:
"DateError: 99/99/99"
which makes perfect sense, but:
x = DateTime("null/null/null")
gives the exception:
"AttributeError: SyntaxError instance has no attribute 'replace'"
and
x = DateTime("null")
gives the exception:
"IndexError: string index out of range"
neither of which make any sense.
==============================================================



More information about the Zope-Collector-Monitor mailing list