Revision 3597
Added by Aaron Marcuse-Kubitza over 12 years ago
py_functions.sql | ||
---|---|---|
131 | 131 |
try: |
132 | 132 |
date = datetime.date(year, month, day) |
133 | 133 |
break |
134 |
except ValueError: |
|
134 |
except ValueError, e:
|
|
135 | 135 |
if try_num > 0: raise # exception still raised after retry |
136 | 136 |
msg = e_msg(e) |
137 | 137 |
if msg == 'month must be in 1..12': # try swapping month and day |
Also available in: Unified diff
schemas/py_functions.sql: _date(): YMD parsing: Fixed bug where exception for ValueError needed to be stored in local var so its message could be parsed