diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 3001cd8c..a041ec3a 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -700,7 +700,7 @@ def createc2workoutdata(w): if workouttype in otwtypes: workouttype = 'water' - if w.timezone == 'tzutc()': + if w.timezone == 'tzutc()': # pragma: no cover w.timezone = 'UTC' w.save() diff --git a/rowers/dataprep.py b/rowers/dataprep.py index c911b4d3..438ee7f1 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -1844,7 +1844,7 @@ def get_startdate_time_zone(r,row,startdatetime=None): if startdatetime is not None and startdatetime != '': try: timezone_str = pendulum.instance(startdatetime).timezone.name - except ValueError: + except ValueError: # pragma: no cover timezone_str = 'Ect/GMT' elif startdatetime == '': startdatetime = row.rowdatetime @@ -1853,7 +1853,7 @@ def get_startdate_time_zone(r,row,startdatetime=None): try: tz = startdatetime.tzinfo - except AttributeError: + except AttributeError: # pragma: no cover startdatetime = row.rowdatetime partofday = getpartofday(row,r) @@ -1899,7 +1899,7 @@ def get_startdate_time_zone(r,row,startdatetime=None): starttime = startdatetime.strftime('%H:%M:%S') if timezone_str == 'tzutc()': - timezone_str = 'UTC' + timezone_str = 'UTC' # pragma: no cover return startdatetime,startdate,starttime,timezone_str,partofday diff --git a/rowers/utils.py b/rowers/utils.py index f9d138c6..3d26097c 100644 --- a/rowers/utils.py +++ b/rowers/utils.py @@ -547,7 +547,7 @@ def get_strava_stream(r,metric,stravaid,series_type='time',fetchresolution='high return np.array(data['data']) except TypeError: # pragma: no cover return None - except: + except: # pragma: no cover return None return None # pragma: no cover