8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81b903f commit ee50f41Copy full SHA for ee50f41
github3/decorators.py
@@ -76,7 +76,8 @@ def requires_app_credentials(func):
76
"""
77
@wraps(func)
78
def auth_wrapper(self, *args, **kwargs):
79
- if hasattr(self, '_session') and self._session.params:
+ client_id, client_secret = self._session.retrieve_client_credentials()
80
+ if client_id and client_secret:
81
return func(self, *args, **kwargs)
82
else:
83
from github3.models import GitHubError
0 commit comments