Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pdfrw/pdfreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def parse_xref_table(self, source, int=int, range=range):
setdefault((objnum, generation), offset)
elif inuse != 'f':
raise ValueError
except:
except Exception:
pass
try:
# Table formatted incorrectly.
Expand All @@ -441,7 +441,7 @@ def parse_xref_table(self, source, int=int, range=range):
log.warning('Badly formatted xref table')
source.floc = end
next()
except:
except Exception:
source.floc = start
source.exception('Invalid table format')

Expand Down