Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2bb0d7

Browse files
committed
fix for a bug reported by [email protected] (TypeError: expected string or buffer)
1 parent a6015b5 commit a2bb0d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/dump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def dbTableValues(self, tableValues):
305305

306306
for value in tableValues[column]['values']:
307307
try:
308-
if re.search("^[\ *]*$", value): #NULL
308+
if not value or re.search("^[\ *]*$", value): #NULL
309309
continue
310310

311311
_ = int(value)
@@ -318,7 +318,7 @@ def dbTableValues(self, tableValues):
318318

319319
for value in tableValues[column]['values']:
320320
try:
321-
if re.search("^[\ *]*$", value): #NULL
321+
if not value or re.search("^[\ *]*$", value): #NULL
322322
continue
323323

324324
_ = float(value)

0 commit comments

Comments
 (0)