Skip to content

Commit

Permalink
Type guessing should not fail for empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Oct 23, 2012
1 parent 8262b13 commit 2c72b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datastore/db.py
Expand Up @@ -210,7 +210,7 @@ def _guess_type(field):
try:
datetime.datetime.strptime(field, format)
return 'timestamp'
except ValueError:
except (ValueError, TypeError):
continue
return 'text'

Expand Down

0 comments on commit 2c72b7b

Please sign in to comment.