Private
Public Access
1
0

some more testing coverage nuances

This commit is contained in:
Sander Roosendaal
2021-05-25 08:45:49 +02:00
parent d57b3910b6
commit a008762808
2 changed files with 4 additions and 3 deletions

View File

@@ -2802,7 +2802,7 @@ def handle_update_wps(rid,types,ids,mode,debug=False,**kwargs):
df = getsmallrowdata_db(['time','driveenergy'],ids=ids)
try:
mask = df['driveenergy'] > 100
except (KeyError, TypeError):
except (KeyError, TypeError): # pragma: no cover
return 0
wps_median = int(df.loc[mask,'driveenergy'].median())