mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-12 02:04:04 +02:00
Fix "args" handling in class PackageNotInstalled
This commit is contained in:
@@ -115,10 +115,10 @@ class PackageNotInstalled(OscBaseError):
|
|||||||
Exception raised when a package is not installed on local system
|
Exception raised when a package is not installed on local system
|
||||||
"""
|
"""
|
||||||
def __init__(self, pkg):
|
def __init__(self, pkg):
|
||||||
OscBaseError.__init__(self, pkg)
|
OscBaseError.__init__(self, (pkg,))
|
||||||
|
|
||||||
def __str__(self):
|
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):
|
class SignalInterrupt(Exception):
|
||||||
"""Exception raised on SIGTERM and SIGHUP."""
|
"""Exception raised on SIGTERM and SIGHUP."""
|
||||||
|
Reference in New Issue
Block a user