codestyle

This commit is contained in:
tvh 2023-11-02 21:25:03 +01:00
parent b7b90083e6
commit 29aad37743

View File

@ -184,12 +184,12 @@ def consume_file(
with open(
os.path.join(inputfile.parent, filename),
"wb",
) as f:
) as target:
logger.info(
f"extracting {filename} from zipfile {inputfile}",
)
with source, f:
shutil.copyfileobj(source, f)
with source, target:
shutil.copyfileobj(source, target)
# continue with consumption if no barcode was found
document = Consumer().try_consume_file(
os.path.join(inputfile.parent, filename),