diff --git a/lib/core/dump.py b/lib/core/dump.py index 196e61b6d..a49fdf84e 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -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)