Improved config error reporting.

This commit is contained in:
Michael Lazar
2016-02-10 00:35:51 -08:00
parent d08b9f47be
commit a0da5fc6ca
7 changed files with 24 additions and 26 deletions

View File

@@ -14,6 +14,7 @@ from .oauth import OAuthHelper
from .terminal import Terminal
from .objects import curses_session
from .subreddit import SubredditPage
from .exceptions import ConfigError
from .__version__ import __version__
@@ -106,6 +107,9 @@ def main():
# Launch the subreddit page
page.loop()
except ConfigError as e:
_logger.exception(e)
print(e)
except Exception as e:
_logger.exception(e)
raise