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:
parent
8e7189b391
commit
78e0aa90f5
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user