fix for a bug reported by rdsears@mtu.edu (TypeError: expected string or buffer)

This commit is contained in:
Miroslav Stampar 2011-04-29 14:40:28 +00:00
parent a6015b59df
commit a2bb0d72e8

View File

@ -305,7 +305,7 @@ class Dump:
for value in tableValues[column]['values']:
try:
if re.search("^[\ *]*$", value): #NULL
if not value or re.search("^[\ *]*$", value): #NULL
continue
_ = int(value)
@ -318,7 +318,7 @@ class Dump:
for value in tableValues[column]['values']:
try:
if re.search("^[\ *]*$", value): #NULL
if not value or re.search("^[\ *]*$", value): #NULL
continue
_ = float(value)