If there is no group name specified search_groups will return all the groups, so a list not a single group making the assumption made by the code invalid and thus leading to a traceback.
Fixes https://pagure.io/pagure/issue/2463
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr
There is not tests to be updated for this ? or maybe a new one to be added :)
I don't think we have tests for this due to this being triggered from the openid request. Would be nice to add some yeah
rebased
I confirm tests are still passing as is :(
Could use if group: ... instead of the if not ...
if group: ...
if not ...
same here
Some suggestions but LGTM ;)
Thanks :)
Pull-Request has been merged by pingou
If there is no group name specified search_groups will return all the
groups, so a list not a single group making the assumption made by the
code invalid and thus leading to a traceback.
Fixes https://pagure.io/pagure/issue/2463
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr