- Refer to subprocess.CalledProcessError correctly

- Add space after operator ">>"
This commit is contained in:
Daniel Hahler 2008-02-09 03:48:57 +01:00
parent 72600ec914
commit 060659df0c

View File

@ -328,8 +328,8 @@ if __name__ == '__main__':
# Launch editor
try:
editor = subprocess.check_call( ['sensible-editor', report_file.name] )
except CalledProcessError, e:
print >>sys.stderr, 'sensible-editor returned with %s: %s\nAborting.' % (editor.returncode, e)
except subprocess.CalledProcessError, e:
print >> sys.stderr, 'Error calling sensible-editor: %s\nAborting.' % (e,)
sys.exit(1)
# Check if the tempfile has been changed