Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
david20571015 committed Mar 10, 2025
1 parent e05102c commit e02b503
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def lazy_load_data(

for item in cursor:
try:
texts = [field_extractors.get(name, str)(item[name]) for name in field_names]
texts = [
field_extractors.get(name, str)(item[name]) for name in field_names
]
except KeyError as err:
raise ValueError(
f"{err.args[0]} field not found in Mongo document."
Expand Down

0 comments on commit e02b503

Please sign in to comment.