Commit 3aa38194 authored by Ivan Tyagov's avatar Ivan Tyagov

Some PDF files fail to provide content information (and it is always good to write safe code).

parent 074f344d
...@@ -65,7 +65,7 @@ if \'large\' not in display_list:\n ...@@ -65,7 +65,7 @@ if \'large\' not in display_list:\n
display_list.append(\'large\') \n display_list.append(\'large\') \n
\n \n
# support frames\n # support frames\n
frames = int(context.getContentInformation()[\'Pages\'])\n frames = int(context.getContentInformation().get(\'Pages\', 0))\n
if frames==0:\n if frames==0:\n
frame_list = [0]\n frame_list = [0]\n
else:\n else:\n
......
8 9
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment