Skip to content

Commit 347ba08

Browse files
move client initialization to init
1 parent 6543100 commit 347ba08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_github_app/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ def __init__(
3333
**kwargs: Any,
3434
) -> None:
3535
self.installation_id = installation_id
36+
self._client = httpx.AsyncClient(verify=ssl_context)
3637
super().__init__(*args, cache=cache, **kwargs)
3738

3839
async def __aenter__(self) -> AsyncGitHubAPI:
3940
from .models import Installation
4041

41-
self._client = httpx.AsyncClient(verify=ssl_context)
4242
if self.installation_id:
4343
try:
4444
installation = await Installation.objects.aget(

0 commit comments

Comments
 (0)