diff --git a/app/models/packages.py b/app/models/packages.py index ef2187f7..333ce8e1 100644 --- a/app/models/packages.py +++ b/app/models/packages.py @@ -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,