fixing ub
This commit is contained in:
@@ -30,6 +30,7 @@ import datetime
|
||||
import pytz
|
||||
import iso8601
|
||||
|
||||
from json.decoder import JSONDecodeError
|
||||
|
||||
from matplotlib.backends.backend_agg import FigureCanvas
|
||||
#from matplotlib.backends.backend_cairo import FigureCanvasCairo as FigureCanvas
|
||||
@@ -2028,7 +2029,10 @@ def handle_makeplot(f1, f2, t, hrdata, plotnr, imagename,
|
||||
elif (plotnr == 2):
|
||||
fig1 = row.get_metersplot_erg(t,pacerange=oterange,**kwargs)
|
||||
elif (plotnr == 3):
|
||||
t += ' - Heart Rate Distribution'
|
||||
try:
|
||||
t += ' - Heart Rate Distribution'
|
||||
except TypeError:
|
||||
t = 'Heart Rate Distribution'
|
||||
fig1 = row.get_piechart(t,**kwargs)
|
||||
elif (plotnr == 4):
|
||||
if haspower:
|
||||
|
||||
Reference in New Issue
Block a user