Skip to content

Commit b09fa00

Browse files
committed
Update
[ghstack-poisoned]
1 parent 5b53672 commit b09fa00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ghstack/github_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ def get_github_repo_info(
9595
except RuntimeError as e:
9696
# Check if this is a repository access error (NOT_FOUND)
9797
error_msg = str(e)
98-
if "Could not resolve to a Repository" in error_msg and "NOT_FOUND" in error_msg:
98+
if (
99+
"Could not resolve to a Repository" in error_msg
100+
and "NOT_FOUND" in error_msg
101+
):
99102
raise RuntimeError(
100103
f"Original error: {error_msg}\n\n"
101104
f"Could not access repository '{name_with_owner['owner']}/{name_with_owner['name']}'. "

0 commit comments

Comments
 (0)