Skip to content

Commit 40db96c

Browse files
committed
Fix empty field handling issue #44
1 parent f1ee808 commit 40db96c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

srum-dump/srum_dump.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@
254254
#Format each column in the row
255255
for position, eachcol in enumerate(table_object.column_names):
256256
out_format = trans_table.get(eachcol, None)
257-
embedded_value = each_record.value(eachcol)
258-
if not out_format or not embedded_value: #Default
257+
embedded_value = each_record.value(eachcol)
258+
259+
if (not out_format) or (not embedded_value) or (embedded_value == "Empty"): #Default
259260
val = embedded_value
260261
new_row.append( val )
261262
elif out_format == "APPID":

0 commit comments

Comments
 (0)