Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(pymongo): handle response collection error (#398)
Browse files Browse the repository at this point in the history
* fix(pymongo): handle response collection error

* fix(pymongo): pytest version for 3.7
  • Loading branch information
sagivr2020 committed Feb 14, 2022
1 parent 358b092 commit dffa938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion epsagon/events/pymongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def handle_filter_operations_response(self, response):

if self.resource['operation'] == 'find':
self.resource['metadata']['Results'] = \
list(response)
[response[i] for i in range(response.count())]

elif self.resource['operation'] == 'update_one':
self.resource['metadata']['matched_count'] = \
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Flask
pylint>=1.9.5,<=2.5.3
pylint-quotes
django
pytest==6.2.5; python_version >= '3.7'
pytest==6.2.5; python_version > '3.7'
pytest==6.1.0; python_version == '3.7'
pytest==6.0.0; python_version >= '3.5' and python_version < '3.7'
pytest==4.6.0; python_version < '3.5'
requests
Expand Down

0 comments on commit dffa938

Please sign in to comment.