1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 01:46:13 +01:00

Fix "args" handling in class PackageNotInstalled

This commit is contained in:
Marcus Huewe 2016-09-09 13:14:35 +02:00
parent 8e7189b391
commit 78e0aa90f5

View File

@ -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."""