Fix logging formatting error
This commit is contained in:
parent
a22cc635b2
commit
df235caf8f
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
import re
|
||||||
|
|
||||||
import click
|
import click
|
||||||
import fitz_new as fitz
|
import fitz_new as fitz
|
||||||
|
@ -108,10 +109,9 @@ def _get_annotations_for_documents(
|
||||||
print(f"File structure errors for {file}.\n{e}")
|
print(f"File structure errors for {file}.\n{e}")
|
||||||
|
|
||||||
if not found_pdf:
|
if not found_pdf:
|
||||||
logger.warning(
|
# have to remove curlys or papis logger gets upset
|
||||||
"Did not find suitable PDF file for document: "
|
desc = re.sub("[{}]", "", papis.document.describe(doc))
|
||||||
f"{papis.document.describe(doc)}"
|
logger.warning("Did not find suitable PDF file for document: " f"{desc}")
|
||||||
)
|
|
||||||
output.append(AnnotatedDocument(doc, annotations))
|
output.append(AnnotatedDocument(doc, annotations))
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue