cubicweb/server/sqlutils.py
changeset 12221 7254c153b5ce
parent 12220 3ba6016a459c
child 12285 512536a40993
--- 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