Skip to content

Commit

Permalink
Data type converter: Check for None values on improved row conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 12, 2022
1 parent 0e572ca commit 6bf53a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crate/client/converter.py
Expand Up @@ -117,6 +117,8 @@ def get(self, type_: ColTypesDefinition) -> ConverterFunction:
inner_convert = self.get(inner_type)

def convert(value):
if value is None:
return None
return [inner_convert(x) for x in value]

return convert
Expand Down

0 comments on commit 6bf53a2

Please sign in to comment.