author | Denis Laxalde <denis.laxalde@logilab.fr> |
Mon, 30 Oct 2017 09:13:02 +0100 | |
changeset 12221 | 7254c153b5ce |
parent 12220 | 3ba6016a459c |
child 12222 | 52f395015ff9 |
--- a/cubicweb/server/sqlutils.py Mon Oct 30 09:14:36 2017 +0100 +++ b/cubicweb/server/sqlutils.py Mon Oct 30 09:13:02 2017 +0100 @@ -546,7 +546,7 @@ def weekday(ustr): try: dt = datetime.strptime(ustr, '%Y-%m-%d %H:%M:%S') - except: + except ValueError: dt = datetime.strptime(ustr, '%Y-%m-%d') # expect sunday to be 1, saturday 7 while weekday method return 0 for # monday