From 3e04cbcd635a0575914dba906fd4ca901bccb288 Mon Sep 17 00:00:00 2001 From: jacksongs Date: Mon, 5 Feb 2018 18:56:20 +1100 Subject: [PATCH] Issue #53 fix See https://github.com/jcushman/pdfquery/issues/53 --- pdfquery/pdfquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfquery/pdfquery.py b/pdfquery/pdfquery.py index aa7f584..474f346 100644 --- a/pdfquery/pdfquery.py +++ b/pdfquery/pdfquery.py @@ -650,7 +650,7 @@ def _add_annots(self, layout, annots): annot = self._set_hwxy_attrs(annot) try: annot['URI'] = resolve1(annot['A'])['URI'] - except KeyError: + except: pass for k, v in six.iteritems(annot): if not isinstance(v, six.string_types):