[PATCH] Properly raise the error

Mathieu Bridon bochecha at fedoraproject.org
Tue Apr 29 10:06:24 UTC 2014


---
 src/pyrpkg/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
index de4ac1c..59a179b 100644
--- a/src/pyrpkg/__init__.py
+++ b/src/pyrpkg/__init__.py
@@ -942,7 +942,7 @@ class Commands(object):
         except OSError, e:
             raise rpkgError(e)
         if error:
-            raise rpkgError('Error querying srpm:' % error)
+            raise rpkgError('Error querying srpm: %s' % error)
         # Doing a strip and split here as splitting on \n gets me an extra entry
         contents = output.strip().split('\n')
         # Cycle through the stuff and sort correctly by its extension
-- 
1.9.0



More information about the rel-eng mailing list