mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-08-07 00:29:55 +02:00
🐛 Explicitly set con_page_info to None if we don't output page_info
This commit is contained in:
parent
eae273452c
commit
2f5c872563
1 changed files with 2 additions and 0 deletions
|
@ -560,6 +560,8 @@ def process(mets_files: list[str], output_file: str, output_page_info: str):
|
|||
with contextlib.suppress(FileNotFoundError):
|
||||
os.remove(output_page_info_sqlite3)
|
||||
con_page_info = sqlite3.connect(output_page_info_sqlite3)
|
||||
else:
|
||||
con_page_info = None
|
||||
|
||||
# Process METS files
|
||||
with open(output_file + ".warnings.csv", "w") as csvfile:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue