From 5ab649cf8c1f567ff751694aea91ec5b9edd47de Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Mon, 20 Jun 2022 10:22:25 -0400 Subject: [PATCH] Code style fix --- parsedmarc/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 7f3501a..957ca01 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -734,8 +734,8 @@ def _main(): logger.setLevel(logging.DEBUG) if opts.log_file: try: - with open(opts.log_file, "w") as log_file: - pass + log_file = open(opts.log_file, "w") + log_file.close() fh = logging.FileHandler(opts.log_file) formatter = logging.Formatter( '%(asctime)s - '