Skip to content

Commit

Permalink
Merge pull request #5557 from snwoods/private/stevenwo/CA-391485
Browse files Browse the repository at this point in the history
CA-391485: Avoid InterpolationSyntaxError by turning off interpolation
  • Loading branch information
snwoods authored Apr 12, 2024
2 parents 01487ea + cee08ad commit 27f5adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python3/packages/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _get_configs_list(config_dir):
def read_config(config_path, header):
"""Read a config file and return a dictionary of key-value pairs."""

parser = configparser.ConfigParser()
parser = configparser.ConfigParser(interpolation=None)
with open(config_path, encoding="utf-8") as config_file:
try:
parser.read_string(f"[{header}]\n{config_file.read()}")
Expand Down

0 comments on commit 27f5adc

Please sign in to comment.