Skip to content

Commit ad54f1c

Browse files
authored
Merge pull request #8 from OnedocLabs/Titou325-patch-1
Update merge.py
2 parents f75a655 + a3b347a commit ad54f1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/client-py/onedoc/merge.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ def merge(doc_a_buffer, doc_a_name, doc_b_buffer, doc_b_name):
3636
continue
3737

3838
annotations = page.Annots
39+
40+
try:
41+
# Fixes issues where page.Annots may be a number
42+
iter(annotations)
43+
except TypeError:
44+
continue
3945

4046
for annotation in annotations:
4147
try:

0 commit comments

Comments
 (0)