From 4d37f53a040df723cd66a280eb4f53f829a717ca Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 23 Dec 2021 11:58:39 +0000 Subject: [PATCH] Fix crash due to null dev_state --- app/models/packages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,