Don't crash if donation goal is zero

This commit is contained in:
Trever Fischer
2012-04-23 10:55:18 -04:00
parent ace52dc66e
commit 3aa1065050

View File

@@ -28,7 +28,7 @@ def donation_info(request):
if donationTotal is None:
progress = 0
donationTotal = 0
if donationTotal> goal:
if donationTotal > goal or goal == 0:
progress = 100
else:
progress = donationTotal/goal*100