@@ -211,7 +211,7 @@ def convert_timedelta(obj):
211
211
212
212
m = TIMEDELTA_RE .match (obj )
213
213
if not m :
214
- return None
214
+ return obj
215
215
216
216
try :
217
217
groups = list (m .groups ())
@@ -227,7 +227,7 @@ def convert_timedelta(obj):
227
227
) * negate
228
228
return tdelta
229
229
except ValueError :
230
- return None
230
+ return obj
231
231
232
232
TIME_RE = re .compile (r"(\d{1,2}):(\d{1,2}):(\d{1,2})(?:.(\d{1,6}))?" )
233
233
@@ -259,7 +259,7 @@ def convert_time(obj):
259
259
260
260
m = TIME_RE .match (obj )
261
261
if not m :
262
- return None
262
+ return obj
263
263
264
264
try :
265
265
groups = list (m .groups ())
@@ -268,7 +268,7 @@ def convert_time(obj):
268
268
return datetime .time (hour = int (hours ), minute = int (minutes ),
269
269
second = int (seconds ), microsecond = int (microseconds ))
270
270
except ValueError :
271
- return None
271
+ return obj
272
272
273
273
274
274
def convert_date (obj ):
@@ -290,7 +290,7 @@ def convert_date(obj):
290
290
try :
291
291
return datetime .date (* [ int (x ) for x in obj .split ('-' , 2 ) ])
292
292
except ValueError :
293
- return None
293
+ return obj
294
294
295
295
296
296
def convert_mysql_timestamp (timestamp ):
@@ -325,7 +325,7 @@ def convert_mysql_timestamp(timestamp):
325
325
try :
326
326
return datetime .datetime (year , month , day , hour , minute , second )
327
327
except ValueError :
328
- return None
328
+ return timestamp
329
329
330
330
def convert_set (s ):
331
331
if isinstance (s , (bytes , bytearray )):
0 commit comments