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
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class Package(db.Model):
"maintainers": [x.username for x in self.maintainers],
"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,
"title": self.title,