From 78e0aa90f560b70fe2d7f37382e4ae784c7f97f3 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Fri, 9 Sep 2016 13:14:35 +0200 Subject: [PATCH] Fix "args" handling in class PackageNotInstalled --- osc/oscerr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/oscerr.py b/osc/oscerr.py index 559f80d1..7eb0f7ae 100644 --- a/osc/oscerr.py +++ b/osc/oscerr.py @@ -115,10 +115,10 @@ class PackageNotInstalled(OscBaseError): Exception raised when a package is not installed on local system """ def __init__(self, pkg): - OscBaseError.__init__(self, pkg) + OscBaseError.__init__(self, (pkg,)) def __str__(self): - return 'Package %s is required for this operation' % ''.join(self.args) + return 'Package %s is required for this operation' % self.args class SignalInterrupt(Exception): """Exception raised on SIGTERM and SIGHUP."""