Skip to content

Commit

Permalink
CRF: add missing handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Oct 2, 2024
1 parent af8eb76 commit cb448c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion edgedb/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def query(self, query: str, *args, **kwargs) -> list:
query_options=_query_opts,
retry_options=self._get_retry_options(),
state=self._get_state(),
warning_handlerr=self._get_warning_handler(),
warning_handler=self._get_warning_handler(),
))

def query_single(
Expand Down
1 change: 1 addition & 0 deletions edgedb/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ async def _privileged_execute(self, query: str) -> None:
query=abstract.QueryWithArgs(query, (), {}),
cache=self._get_query_cache(),
state=self._get_state(),
warning_handler=self._get_warning_handler(),
))


Expand Down
1 change: 1 addition & 0 deletions tests/test_async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ async def test_json_elements(self):
),
retry_options=None,
state=None,
warning_handler=lambda _ex, _: None,
)
)
self.assertEqual(
Expand Down
1 change: 1 addition & 0 deletions tests/test_sync_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ def test_json_elements(self):
),
retry_options=None,
state=None,
warning_handler=lambda _ex, _: None,
)
)
)
Expand Down

0 comments on commit cb448c4

Please sign in to comment.