Skip to content

AttributeError in pdf.py due to unchecked regex return #33

@GoogleCodeExporter

Description

@GoogleCodeExporter
Lines 320 and 334 in pdf.py both contain the code:

streamLocation = re.search(....);

In both cases, the return value is unchecked.  In the case where no match is 
found this leads to a fatal AttributeError on the following line when 
streamLocation.start() is accessed.

Suggest adding an 'if streamLocation:' check in both cases to allow the script 
to continue.

Original issue reported on code.google.com by shanecar...@gmail.com on 8 Aug 2014 at 6:26

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions