Skip to content

Commit

Permalink
Fix a "raise KeyError(key) from None" in pikepdf
Browse files Browse the repository at this point in the history
* At pikepdf/models/metadata.py:706
* Close #1019
  • Loading branch information
jeromerobert authored and dreua committed Dec 29, 2023
1 parent a6e7d02 commit cfb433e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdfarranger/metadata.py
Expand Up @@ -87,6 +87,9 @@ def _safeiter(elements):
break
except ValueError:
traceback.print_exc()
except KeyError:
# Workaround for https://github.com/pdfarranger/pdfarranger/issues/1019
pass


def merge_doc(metadata, input_docs):
Expand Down

0 comments on commit cfb433e

Please sign in to comment.