Skip to content

Commit e94cc45

Browse files
Resolving it as runtime error
1 parent 877fd19 commit e94cc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitingest/query_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async def _configure_branch_and_subpath(remaining_parts: list[str], url: str) ->
197197
try:
198198
# Fetch the list of branches from the remote repository
199199
branches: list[str] = await fetch_remote_branch_list(url)
200-
except Exception as e:
200+
except RuntimeError as e:
201201
warnings.warn(f"Warning: Failed to fetch branch list: {str(e)}")
202202
return remaining_parts.pop(0)
203203

0 commit comments

Comments
 (0)