From c794c6ec60efdc732269d7e32aaeeb0527b44149 Mon Sep 17 00:00:00 2001 From: jkarasti Date: Mon, 25 Nov 2024 19:11:25 +0200 Subject: [PATCH] Lint: Fix unused-variable (F841) --- dangerzone/logic.py | 2 +- install/windows/build-wxs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerzone/logic.py b/dangerzone/logic.py index 37e33804b..786fc444a 100644 --- a/dangerzone/logic.py +++ b/dangerzone/logic.py @@ -71,7 +71,7 @@ def convert_doc(document: Document) -> None: ocr_lang, stdout_callback, ) - except Exception as e: + except Exception: log.exception( f"Unexpected error occurred while converting '{document}'" ) diff --git a/install/windows/build-wxs.py b/install/windows/build-wxs.py index 14aa92deb..775bf27d3 100644 --- a/install/windows/build-wxs.py +++ b/install/windows/build-wxs.py @@ -105,7 +105,7 @@ def build_components_xml(root, data): Guid=subdata["component_guid"], ) for filename in subdata["files"]: - file_el = ET.SubElement( + ET.SubElement( component_el, "File", Source=filename, Id="file_" + uuid.uuid4().hex )