Fix error string when there is a problem listing projects

This commit is contained in:
Brian C. Lane 2017-11-27 11:20:42 -08:00
parent efd15aaad7
commit cf42e1a480

View File

@ -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())