Skip to content

Commit

Permalink
catch
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandemeusy committed Apr 22, 2024
1 parent 80978ef commit bdf6c08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ct-app/core/components/graphql_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ async def _execute(self, query: DocumentNode, variable_values: dict):
)
except TransportQueryError as err:
raise ProviderError(err.errors[0]["message"])
except TimeoutError as err:
self.error("Timeout error: ", err)

async def _test_query(self, key: str, **kwargs) -> bool:
"""
Expand Down Expand Up @@ -111,8 +113,7 @@ async def test(self, **kwargs):
)
return False

return await self._test_query(self._default_key, **kwargs)

results = await self._test_query(self._default_key, **kwargs)

class SafesProvider(GraphQLProvider):
def __init__(self, url: str):
Expand Down

0 comments on commit bdf6c08

Please sign in to comment.