Skip to content
Snippets Groups Projects
Verified Commit d105fdb3 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Don't fail on non-existing version object on automatic plan update

parent 099215c2
No related branches found
No related tags found
1 merge request!223Resolve "Automatic plan update fails because of missing version object"
......@@ -1261,6 +1261,10 @@ class AutomaticPlan(LiveDocument):
)
update = False
for version in versions:
if not version.object:
# Object exists no longer, so we can skip this
continue
# Check if the changed object is relevant for the time period of the PDF file
if isinstance(version.object, Event):
date_start = version.object.date_start
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment