Cleaned up exception logging.

This commit is contained in:
Michael Lazar
2015-10-14 23:25:50 -07:00
parent d52f574746
commit 2980097d7c
4 changed files with 20 additions and 36 deletions

View File

@@ -70,7 +70,7 @@ def open_editor(data=''):
try:
subprocess.Popen([editor, fp.name]).wait()
except OSError:
raise ProgramError(editor)
raise ProgramError('Could not open file with %s' % editor)
curses.doupdate()
# Open a second file object to read. This appears to be necessary in