Skip to content

Commit 4b82ded

Browse files
authored
Merge pull request #2 from seung-lab/akhilesh-handle-missing-columns
fix: skip missing column
2 parents 34fd3fe + 4dd4614 commit 4b82ded

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kvdbclient/bigtable/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ def partial_row_data_to_column_dict(
2727
new_column_dict = {}
2828
for family_id, column_dict in partial_row_data._cells.items():
2929
for column_key, column_values in column_dict.items():
30-
column = _from_key(family_id, column_key)
30+
try:
31+
column = _from_key(family_id, column_key)
32+
except KeyError:
33+
continue
3134
new_column_dict[column] = column_values
3235
return new_column_dict
3336

0 commit comments

Comments
 (0)