Skip to content

Commit

Permalink
refactor: codefactor advice
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucs1590 committed Apr 11, 2024
1 parent 1c0824b commit 960ae1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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."
)
Expand Down

0 comments on commit 960ae1e

Please sign in to comment.