From 960ae1e328b014e584c04f28dee00d62dd45ed70 Mon Sep 17 00:00:00 2001 From: Lucas Brito Date: Thu, 11 Apr 2024 17:10:02 -0300 Subject: [PATCH] refactor: codefactor advice --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 6b1ad18..6ee4770 100644 --- a/src/main.py +++ b/src/main.py @@ -1,10 +1,10 @@ import re import os import logging +import webbrowser from xml.dom import minidom import questionary -import webbrowser from tcxreader.tcxreader import TCXReader @@ -142,7 +142,7 @@ def indent_xml_file(file_path: str) -> None: with open(file_path, "w") as xml_file: xml_file.write(xml_dom.toprettyxml(indent=" ")) - except Exception as e: + except Exception as err: logger.warning( "Failed to indent the XML file. The file will be saved without indentation." )