mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-11-21 22:42:39 +00:00
Bump version to 9.5.2 and fix interpolation issues in config parser
This commit is contained in:
1 parent
12c4676b79
commit
e1bdbeb257
4 files changed
+9
-5
No files matched your search
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 9.5.2
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed `ValueError: invalid interpolation syntax` when config values (from env vars or INI files) contain `%` characters, such as in passwords. Disabled ConfigParser's `%`-based string interpolation.
|
||||||
|
|
||||||
## 9.5.1
|
## 9.5.1
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|||||||
@@ -1955,9 +1955,7 @@ def get_dmarc_reports_from_mailbox(
|
|||||||
)
|
)
|
||||||
current_time = datetime.now(timezone.utc).strftime("%d-%b-%Y")
|
current_time = datetime.now(timezone.utc).strftime("%d-%b-%Y")
|
||||||
elif isinstance(connection, MSGraphConnection):
|
elif isinstance(connection, MSGraphConnection):
|
||||||
since = (
|
since = (datetime.now(timezone.utc) - timedelta(minutes=_since)).isoformat()
|
||||||
datetime.now(timezone.utc) - timedelta(minutes=_since)
|
|
||||||
).isoformat()
|
|
||||||
current_time = datetime.now(timezone.utc).isoformat() + "Z"
|
current_time = datetime.now(timezone.utc).isoformat() + "Z"
|
||||||
elif isinstance(connection, GmailConnection):
|
elif isinstance(connection, GmailConnection):
|
||||||
since = (datetime.now(timezone.utc) - timedelta(minutes=_since)).strftime(
|
since = (datetime.now(timezone.utc) - timedelta(minutes=_since)).strftime(
|
||||||
|
|||||||
+1
-1
@@ -264,7 +264,7 @@ def _load_config(config_file: str | None = None) -> ConfigParser:
|
|||||||
Raises:
|
Raises:
|
||||||
ConfigurationError: If *config_file* is given but does not exist.
|
ConfigurationError: If *config_file* is given but does not exist.
|
||||||
"""
|
"""
|
||||||
config = ConfigParser()
|
config = ConfigParser(interpolation=None)
|
||||||
if config_file is not None:
|
if config_file is not None:
|
||||||
abs_path = os.path.abspath(config_file)
|
abs_path = os.path.abspath(config_file)
|
||||||
if not os.path.exists(abs_path):
|
if not os.path.exists(abs_path):
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
__version__ = "9.5.1"
|
__version__ = "9.5.2"
|
||||||
|
|
||||||
USER_AGENT = f"parsedmarc/{__version__}"
|
USER_AGENT = f"parsedmarc/{__version__}"
|
||||||
Reference in new issue
Block a user