mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Lint: Fix unused-variable (F841)
This commit is contained in:
parent
5ad8092a2c
commit
688bc991ab
2 changed files with 2 additions and 2 deletions
|
@ -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}'"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue