Fix error string when there is a problem listing projects
This commit is contained in:
parent
efd15aaad7
commit
cf42e1a480
@ -157,7 +157,7 @@ def projects_list(yb):
|
||||
try:
|
||||
ybl = yb.doPackageLists(pkgnarrow="available", showdups=False)
|
||||
except YumBaseError as e:
|
||||
raise ProjectsError("There was a problem listing projects: %s", str(e))
|
||||
raise ProjectsError("There was a problem listing projects: %s" % str(e))
|
||||
return sorted(map(yaps_to_project, ybl.available), key=lambda p: p["name"].lower())
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user