Merge pull request #480 from Serene-Arc/bug_fix_460

This commit is contained in:
Serene
2021-07-03 13:55:41 +10:00
committed by GitHub

View File

@@ -119,7 +119,7 @@ class RedditConnector(metaclass=ABCMeta):
logger.debug('Using authenticated Reddit instance')
if not self.cfg_parser.has_option('DEFAULT', 'user_token'):
logger.log(9, 'Commencing OAuth2 authentication')
scopes = self.cfg_parser.get('DEFAULT', 'scopes')
scopes = self.cfg_parser.get('DEFAULT', 'scopes', fallback='identity, history, read, save')
scopes = OAuth2Authenticator.split_scopes(scopes)
oauth2_authenticator = OAuth2Authenticator(
scopes,