From 7f1c929a080b2462897c5f998ba4fac6b9a60fa4 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Sat, 3 Jul 2021 13:54:26 +1000 Subject: [PATCH] Add fallback scope --- bdfr/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdfr/connector.py b/bdfr/connector.py index 5628e94..1eb91c8 100644 --- a/bdfr/connector.py +++ b/bdfr/connector.py @@ -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,