Skip to content

Commit 96cc6d4

Browse files
Added ref to sumo issue
1 parent 77a60f3 commit 96cc6d4

File tree

1 file changed

+4
-2
lines changed
  • backend_py/primary/primary/services/sumo_access

1 file changed

+4
-2
lines changed

backend_py/primary/primary/services/sumo_access/_helpers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ class SynchronousMethodCallError(Exception):
1818

1919

2020
class FakeHTTPXClient:
21-
"""A fake HTTPX client to ensure we use async methods instead of sync ones."""
21+
"""A fake HTTPX client to ensure we use async methods instead of sync ones.
22+
This is needed as we do not want to allow any synchronous HTTP calls in the primary service.
23+
Ideally this should be handled by the SumoClient. https://github.com/equinor/fmu-sumo/issues/369"""
2224

2325
def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=unused-argument
24-
self._error_msg = "🚫 Do not use a synchronious http class!. Use the async http class instead. "
26+
self._error_msg = "🚫 Do not use a synchronous http class!. Use the async http class instead. "
2527

2628
def __getattr__(self, name: str) -> None:
2729
"""Catch any synchronous method calls and raise a helpful error."""

0 commit comments

Comments
 (0)