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
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ Here's an example of what |docx| can do:
'first item in ordered list', style='List Number'
)

document.add_picture('monty-truth.png', width=Inches(1.25))
try:
document.add_picture('monty-truth.png', width=Inches(1.25))
except FileNotFoundError:
# the image is optional; the example works without it
pass

records = (
(3, '101', 'Spam'),
Expand Down