Fix crash due to null dev_state

This commit is contained in:
rubenwardy 2021-12-23 11:58:39 +00:00
parent e3ed5fbc58
commit 4d37f53a04

@ -492,7 +492,7 @@ class Package(db.Model):
"maintainers": [x.username for x in self.maintainers], "maintainers": [x.username for x in self.maintainers],
"state": self.state.name, "state": self.state.name,
"dev_state": self.dev_state.name, "dev_state": self.dev_state.name if self.dev_state else None,
"name": self.name, "name": self.name,
"title": self.title, "title": self.title,