From 23bd3ec40d30a54c64008705800b41a64e427fb1 Mon Sep 17 00:00:00 2001 From: nickmwangemi Date: Mon, 8 Jan 2024 13:16:48 +0300 Subject: [PATCH] Handle NoneType error --- peachjam/models/judgment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peachjam/models/judgment.py b/peachjam/models/judgment.py index 5d2e5f37a..425133564 100644 --- a/peachjam/models/judgment.py +++ b/peachjam/models/judgment.py @@ -354,7 +354,7 @@ def pre_save(self): if self.registry: self.court = self.registry.court - if self.court.country: + if self.court.country is None or self.court.country: self.jurisdiction = self.court.country if self.court.locality: