Skip to content

Commit

Permalink
address pylint again #338
Browse files Browse the repository at this point in the history
  • Loading branch information
asuresh-code committed Oct 17, 2024
1 parent dc4f1c1 commit 4663e0c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,12 @@ def forward(self, session: ClientSession):
"modified_time": old_catalogue_item.modified_time,
}

result = self._catalogue_items_collection.replace_one(
self._catalogue_items_collection.replace_one(
{"_id": catalogue_item["_id"]},
update_data,
session=session,
)

return result

except ValidationError as ve:
logger.error("Validation failed for item with id %s: %s", catalogue_item["_id"], ve)

Expand Down

0 comments on commit 4663e0c

Please sign in to comment.