Lint: Fix unused-variable (F841)

This commit is contained in:
jkarasti 2024-11-25 19:11:25 +02:00
parent 5ad8092a2c
commit 688bc991ab
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class DangerzoneCore(object):
ocr_lang, ocr_lang,
stdout_callback, stdout_callback,
) )
except Exception as e: except Exception:
log.exception( log.exception(
f"Unexpected error occurred while converting '{document}'" f"Unexpected error occurred while converting '{document}'"
) )

View file

@ -105,7 +105,7 @@ def build_components_xml(root, data):
Guid=subdata["component_guid"], Guid=subdata["component_guid"],
) )
for filename in subdata["files"]: for filename in subdata["files"]:
file_el = ET.SubElement( ET.SubElement(
component_el, "File", Source=filename, Id="file_" + uuid.uuid4().hex component_el, "File", Source=filename, Id="file_" + uuid.uuid4().hex
) )