Skip to content

Commit

Permalink
fixes #3186: check that the section handler_timed_file_handler exists…
Browse files Browse the repository at this point in the history
… before trying to modify it

Signed-off-by: Ricky Ng-Adam <[email protected]>
  • Loading branch information
rngadam committed Aug 20, 2024
1 parent 277e958 commit 15b4aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aries_cloudagent/config/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def fileConfig(
except configparser.ParsingError as e:
raise RuntimeError(f"{fname} is invalid: {e}")

if new_file_path:
if new_file_path and cp.has_section("handler_timed_file_handler"):
cp.set(
"handler_timed_file_handler",
"args",
Expand Down

0 comments on commit 15b4aee

Please sign in to comment.