mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Plugin.call() now uses errors2 version of SubprocessError
This commit is contained in:
@@ -291,9 +291,9 @@ class Plugin(ReadOnly):
|
||||
"""
|
||||
argv = (executable,) + args
|
||||
self.debug('Calling %r', argv)
|
||||
returncode = subprocess.call(argv)
|
||||
if returncode != 0:
|
||||
raise errors.SubprocessError(returncode, argv)
|
||||
code = subprocess.call(argv)
|
||||
if code != 0:
|
||||
raise errors2.SubprocessError(returncode=code, argv=argv)
|
||||
|
||||
def __repr__(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user