diff --git a/core/models.py b/core/models.py index 1aa7a476..779470f3 100755 --- a/core/models.py +++ b/core/models.py @@ -1332,7 +1332,11 @@ class Work(models.Model): if(campaign.status == 'SUCCESSFUL'): status = 6 elif(campaign.status == 'ACTIVE'): - target = float(campaign.target) + if campaign.target is not None: + target = float(campaign.target) + else: + #shouldn't happen, but did once because of a failed pdf conversion + return 0 if target <= 0: status = 6 else: