Skip to content

Commit

Permalink
[FIX] pdf_helper: Odoo compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralmau and pedrobaeza committed Oct 25, 2024
1 parent c5da9c3 commit 6d16cb1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pdf_helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@

from lxml import etree

try:
from PyPDF2.errors import PdfReadError
except ImportError:
from PyPDF2.utils import PdfReadError

from odoo.tools.pdf import OdooPdfFileReader
from odoo.tools.pdf import OdooPdfFileReader, PdfReadError

_logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 6d16cb1

Please sign in to comment.