Plugin.call() now uses errors2 version of SubprocessError

This commit is contained in:
Jason Gerard DeRose
2009-01-03 18:02:58 -07:00
parent 6b6e6b1cab
commit bb6e9cfe9f
3 changed files with 13 additions and 10 deletions

View File

@@ -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):
"""