Skip to content

Commit d0923e2

Browse files
committed
chore(github): tiny improvements
1 parent c3821c7 commit d0923e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

giftless/auth/github.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,7 @@ class Schema(ma.Schema):
265265
api_timeout = RequestsTimeout(load_default=(5.0, 10.0))
266266
restrict_to = ma.fields.Dict(
267267
keys=ma.fields.String(),
268-
values=ma.fields.List(
269-
ma.fields.String(allow_none=True), allow_none=True
270-
),
268+
values=ma.fields.List(ma.fields.String(), allow_none=True),
271269
load_default=None,
272270
allow_none=True,
273271
)
@@ -342,7 +340,7 @@ def _check_restricted_to(self) -> None:
342340
) from None
343341
if rest_repos and self.repo not in rest_repos:
344342
raise Unauthorized(
345-
f"Unauthorized GitHub repository '{self.repo}'"
343+
f"Unauthorized GitHub repository '{self.org}/{self.repo}'"
346344
)
347345

348346
def __enter__(self) -> "CallContext":

0 commit comments

Comments
 (0)