From d5a45c420dc78a6d7d583e2c60e9cec30957a3b1 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 27 Nov 2017 11:20:42 -0800 Subject: [PATCH] Fix error string when there is a problem listing projects --- src/pylorax/api/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/api/projects.py b/src/pylorax/api/projects.py index 59b3d813..32b8e73c 100644 --- a/src/pylorax/api/projects.py +++ b/src/pylorax/api/projects.py @@ -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())