Skip to content

Commit e700b32

Browse files
authored
Merge pull request #199 from OpenDataServices/cove-940-duplicate-None-warnings
[OpenDataServices/cove#940] Remove duplicate None warnings
2 parents e3b4eb4 + 49e60b8 commit e700b32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flattentool/input.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ def do_unflatten(self):
254254
# We want to ignore data in earlier columns, so we look
255255
# through the data backwards
256256
for i, actual_heading in enumerate(reversed(actual_headings)):
257+
if actual_heading is None:
258+
continue
257259
if actual_heading in found:
258260
found[actual_heading].append((last_col-i)-1)
259261
else:

0 commit comments

Comments
 (0)