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]>
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
2 people authored and jamshale committed Aug 22, 2024
1 parent 7e2cdb0 commit 0f6090a
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 0f6090a

Please sign in to comment.