Browse Source

[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 years ago
parent
commit
bc2f0ac
1 changed files with 1 additions and 2 deletions
  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:
     try:
       parse(value)
       parse(value)
-    except:
-      LOG.exception('failed to parse value %s' % value)
+    except OverflowError:
       raise ValueError()
       raise ValueError()
 
 
   def test_int(value):
   def test_int(value):