From bb6e9cfe9ff25f3a018b23785f71302911eab435 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sat, 3 Jan 2009 18:02:58 -0700 Subject: Plugin.call() now uses errors2 version of SubprocessError --- ipalib/plugable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/plugable.py') diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 094634d33..f7baa2a1f 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -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): """ -- cgit