Added better descriptions to loader messages.

This commit is contained in:
Michael Lazar
2015-12-07 00:47:59 -08:00
parent b62437146a
commit 6fa431aec9
8 changed files with 33 additions and 28 deletions

View File

@@ -64,7 +64,7 @@ def main():
try:
with curses_session() as stdscr:
term = Terminal(stdscr, config['ascii'])
with term.loader(catch_exception=False):
with term.loader('Initializing', catch_exception=False):
reddit = praw.Reddit(user_agent=user_agent,
decode_html_entities=False,
disable_update_check=True)
@@ -74,9 +74,9 @@ def main():
if config.refresh_token:
oauth.authorize()
with term.loader():
page = SubredditPage(reddit, term, config, oauth,
config['subreddit'])
name = config['subreddit']
with term.loader('Loading subreddit'):
page = SubredditPage(reddit, term, config, oauth, name)
if term.loader.exception:
return