diff --git a/rowers/views.py b/rowers/views.py index bef20278..cc4c649b 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -3010,8 +3010,12 @@ def otwrankings_view(request,theuser=0, if not np.isnan(pwr): - pwr2 = pwr*ratio - a = { + try: + pwr2 = pwr*ratio + except: + pwr2 = pwr + + a = { 'duration':timedeltaconv(t), 'power':int(pwr), 'upper':int(pwr2)}