Skip to content

Commit

Permalink
Handle NoneType error
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmwangemi committed Jan 8, 2024
1 parent 2ed1dae commit 23bd3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peachjam/models/judgment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 23bd3ec

Please sign in to comment.