diff --git a/dangerzone/logic.py b/dangerzone/logic.py index 37e3380..786fc44 100644 --- a/dangerzone/logic.py +++ b/dangerzone/logic.py @@ -71,7 +71,7 @@ class DangerzoneCore(object): 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 14aa92d..775bf27 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 )