Commit 5e9a22b7 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

branch.updated might still be None

parent 5f1333be
Pipeline #513 passed with stages
in 56 seconds
......@@ -238,7 +238,7 @@ class Project(Links, NamedModel, TimeStampedModel):
if (branch is not None and branch.updated is not None) or robotpkg is not None:
if robotpkg is None:
self.updated = branch.updated
elif branch is None:
elif branch is None or branch.updated is None:
self.updated = robotpkg.updated
else:
self.updated = max(branch.updated, robotpkg.updated)
......
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