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): ...@@ -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 (branch is not None and branch.updated is not None) or robotpkg is not None:
if robotpkg is None: if robotpkg is None:
self.updated = branch.updated self.updated = branch.updated
elif branch is None: elif branch is None or branch.updated is None:
self.updated = robotpkg.updated self.updated = robotpkg.updated
else: else:
self.updated = max(branch.updated, robotpkg.updated) self.updated = max(branch.updated, robotpkg.updated)
......
Supports Markdown
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