Skip to content

Commit

Permalink
fix: catch the exception thrown by aiohttp.
Browse files Browse the repository at this point in the history
We need more testing.
  • Loading branch information
overcat committed Aug 14, 2019
1 parent 0fb216d commit 108c935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stellar_sdk/client/aiohttp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def get(self, url: str, params: Dict[str, str] = None) -> Response:
headers=dict(response.headers),
url=str(response.url),
)
except aiohttp.ClientConnectionError as e: # TODO: need more research
except aiohttp.ClientError as e: # TODO: need more research
raise ConnectionError(e)

async def post(self, url: str, data: Dict[str, str] = None) -> Response:
Expand Down

0 comments on commit 108c935

Please sign in to comment.