Skip to content

Commit

Permalink
Ignore failure to load thriftpy2 in coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Aiudi <[email protected]>
  • Loading branch information
aiudirog committed Feb 2, 2021
1 parent 9bab1d8 commit c4e3fb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aiohappybase/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

try:
from thriftpy2_httpx_client import make_aio_client as make_http_client
except ImportError:
except ImportError: # pragma: no cover
async def make_http_client(*_, **__):
raise RuntimeError("thriftpy2_httpx_client is required to"
" use the HTTP client protocol.")
Expand Down
4 changes: 2 additions & 2 deletions aiohappybase/sync/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

try:
from thriftpy2_httpx_client import make_sync_client as make_http_client
except ImportError:
async def make_http_client(*_, **__):
except ImportError: # pragma: no cover
def make_http_client(*_, **__):
raise RuntimeError("thriftpy2_httpx_client is required to"
" use the HTTP client protocol.")

Expand Down

0 comments on commit c4e3fb6

Please sign in to comment.