Fixed a few bugs and added cassettes.

This commit is contained in:
Michael Lazar
2016-07-26 01:06:44 -07:00
parent 0dbb3459ed
commit ddb459cf56
9 changed files with 995 additions and 15 deletions

View File

@@ -279,7 +279,7 @@ class Terminal(object):
"""
if isinstance(message, six.string_types):
message = [message]
message = message.splitlines()
n_rows, n_cols = self.stdscr.getmaxyx()
@@ -371,7 +371,8 @@ class Terminal(object):
_, stderr = p.communicate()
_logger.warning(stderr)
self.show_notification(
'Program exited with status=%s\n%s' % (code, stderr))
'Program exited with status={0}\n{1}'.format(
code, stderr.strip()))
else:
# Non-blocking, open a background process
@@ -387,7 +388,8 @@ class Terminal(object):
if code is not None and code != 0:
_, stderr = p.communicate()
raise exceptions.BrowserError(
'Program exited with status=%s\n%s' % (code, stderr))
'Program exited with status={0}\n{1}'.format(
code, stderr.strip()))
def get_mailcap_entry(self, url):
"""