File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
backend_py/primary/primary/services/sumo_access Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,12 @@ class SynchronousMethodCallError(Exception):
18
18
19
19
20
20
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"""
22
24
23
25
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. "
25
27
26
28
def __getattr__ (self , name : str ) -> None :
27
29
"""Catch any synchronous method calls and raise a helpful error."""
You can’t perform that action at this time.
0 commit comments