Skip to content

Commit 4c4731b

Browse files
committed
some debug
1 parent 45f3be0 commit 4c4731b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

meeseeksdev/meeseeksbox/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def _build_auth_id_mapping(self):
170170
self._update_installation(installation)
171171

172172
def _update_installation(self, installation):
173+
print("Updating installations")
173174
iid = installation["id"]
175+
print("... making a session")
174176
session = self.session(iid)
175177
try:
176178
# Make sure we get all pages.
@@ -309,6 +311,7 @@ def prepare():
309311
with requests.Session() as s:
310312
response = s.send(prepare()) # type:ignore[attr-defined]
311313
if response.status_code == 401:
314+
print("Unauthorized, regen token")
312315
self.regen_token()
313316
response = s.send(prepare()) # type:ignore[attr-defined]
314317
if raise_for_status:
@@ -339,6 +342,7 @@ def _get_permission(self, org: str, repo: str, username: str) -> Permission:
339342
get_collaborators_query = API_COLLABORATORS_TEMPLATE.format(
340343
org=org, repo=repo, username=username
341344
)
345+
print("_get_permission")
342346
resp = self.ghrequest(
343347
"GET",
344348
get_collaborators_query,

0 commit comments

Comments
 (0)