diff --git a/rowers/views/planviews.py b/rowers/views/planviews.py index 6a4f1f5a..e01d1460 100644 --- a/rowers/views/planviews.py +++ b/rowers/views/planviews.py @@ -2576,7 +2576,10 @@ def rower_view_instantplan(request,id='',userid=0): raise Http404("Plan does not exist") plan = InstantPlan.objects.get(uuid=id) - discountedprice = credits.discounted(plan.price,r) + try: + discountedprice = credits.discounted(plan.price,r) + except AttributeError: + discountedprice = plan.price authorizationstring = 'Bearer '+settings.WORKOUTS_FIT_TOKEN url = settings.WORKOUTS_FIT_URL+"/trainingplan/"+id