You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"parse_git_repo" function's return value is returned to repo_url variable which is used by "get_project_from_url" function, however "parse_git_repo" function can return NoneType causing AttributeError
The text was updated successfully, but these errors were encountered:
When using `PagureService.get_project_from_url` test for correctly parsed
URL before accessing its attributes (resulting in `AttributeError`).
Fixespackit#698
Signed-off-by: Matej Focko <[email protected]>
fix(pagure): raise for invalid URL in pagure
When using PagureService.get_project_from_url test for correctly parsed
URL before accessing its attributes (resulting in AttributeError).
Fixes#698
Signed-off-by: Matej Focko [email protected]
RELEASE NOTES BEGIN
ogr now correctly raises OgrException when given invalid URL to PagureService.get_project_from_url.
RELEASE NOTES END
Reviewed-by: Jiri Popelka <None>
ogr/ogr/services/pagure/service.py
Line 101 in c6bf9ae
ogr/ogr/parsing.py
Line 202 in c6bf9ae
"parse_git_repo" function's return value is returned to repo_url variable which is used by "get_project_from_url" function, however "parse_git_repo" function can return NoneType causing AttributeError
The text was updated successfully, but these errors were encountered: