[PATCH] Properly raise the error
Pavol Babincak
pbabinca at redhat.com
Tue Apr 29 14:50:46 UTC 2014
Looks good. Applied. Thanks!
On 29/04/14 12:06, Mathieu Bridon wrote:
> ---
> 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
>
--
Pavol Babincak
Release Engineering, Red Hat
More information about the rel-eng
mailing list