Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
david20571015 committed Mar 8, 2025
1 parent 2eef428 commit 391928e
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 391928e

Please sign in to comment.