Skip to content

Commit

Permalink
fixes openwallet-foundation#3186: check that the section handler_time…
Browse files Browse the repository at this point in the history
…d_file_handler exists before trying to modify it (openwallet-foundation#3187)

Signed-off-by: Ricky Ng-Adam <[email protected]>
Co-authored-by: Stephen Curran <[email protected]>
  • Loading branch information
2 people authored and darshilnb committed Sep 5, 2024
1 parent 1705acf commit 7019b8c
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 7019b8c

Please sign in to comment.