Strip leading and trailing whitespaces from Gmail scopes (Closes #310)
This commit is contained in:
Sean Whalen
2022-04-26 12:17:25 -04:00
parent 64f8eef27b
commit 75da9f6a30
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -1,6 +1,11 @@
Changelog
=========
8.0.2
-----
- Strip leading and trailing whitespaces from Gmail scopes (Closes #310)
8.0.1
-----
+1 -1
View File
@@ -34,7 +34,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg
from parsedmarc.utils import parse_email
from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime
__version__ = "8.0.1"
__version__ = "8.0.2"
formatter = logging.Formatter(
fmt='%(levelname)8s:%(filename)s:%(lineno)d:%(message)s',
+3 -1
View File
@@ -639,7 +639,9 @@ def _main():
gmail_api_config.getboolean("include_spam_trash", False)
opts.gmail_api_scopes = \
gmail_api_config.get("scopes",
default_gmail_api_scope).split(',')
default_gmail_api_scope)
opts.gmail_api_scopes = \
_str_to_list(opts.gmail_api_scopes)
logger.setLevel(logging.WARNING)