Pylint
This commit is contained in:
@@ -190,7 +190,7 @@ class LoadScreen(object):
|
||||
|
||||
self.exception = e
|
||||
exc_name = type(e).__name__
|
||||
_logger.info('Loader caught: {0} - {1}'.format(exc_name, e))
|
||||
_logger.info('Loader caught: %s - %s', exc_name, e)
|
||||
|
||||
if isinstance(e, KeyboardInterrupt):
|
||||
# Don't need to print anything for this one, just swallow it
|
||||
|
||||
@@ -81,7 +81,7 @@ class SubredditPage(Page):
|
||||
If this was pressed on the front page, go back to the last subreddit.
|
||||
"""
|
||||
|
||||
if not self.content.name == '/r/front':
|
||||
if self.content.name != '/r/front':
|
||||
target = '/r/front'
|
||||
self._toggled_subreddit = self.content.name
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user