Skip to content

Commit

Permalink
fixes hyperledger#3186: check that the section handler_timed_file_han…
Browse files Browse the repository at this point in the history
…dler exists before trying to modify it (hyperledger#3187)

Signed-off-by: Ricky Ng-Adam <ricky.ng-adam-ext@mcn.gouv.qc.ca>
Co-authored-by: Stephen Curran <swcurran@gmail.com>
  • Loading branch information
rngadam and swcurran committed Aug 20, 2024
1 parent 4460981 commit f29e67e
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 f29e67e

Please sign in to comment.