فهرست منبع

[indexer] dateutil.parse only throws ValueError or OverflowError

This also cuts down on the log noise when the indexer tries to guess
the type of a value.
Erick Tryzelaar 10 سال پیش
والد
کامیت
bc2f0acab9
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      desktop/libs/indexer/src/indexer/utils.py

+ 1 - 2
desktop/libs/indexer/src/indexer/utils.py

@@ -131,8 +131,7 @@ def get_field_types(field_list, iterations=3):
 
     try:
       parse(value)
-    except:
-      LOG.exception('failed to parse value %s' % value)
+    except OverflowError:
       raise ValueError()
 
   def test_int(value):