Fixed a few python2 tests.

This commit is contained in:
Michael Lazar
2016-07-26 01:15:18 -07:00
parent 5a5d9ac56d
commit 620434eed0
3 changed files with 8 additions and 5 deletions

View File

@@ -52,8 +52,11 @@ class Terminal(object):
self.loader = LoadScreen(self)
self._display = None
# TODO: Load from custom location
self._mailcap_dict = mailcap.getcaps()
try:
self._mailcap_dict = mailcap.getcaps()
except IOError:
# Python 2 raises an error, python 3 does not
self._mailcap_dict = {}
@property
def up_arrow(self):