diff --git a/run_page/generator/__init__.py b/run_page/generator/__init__.py index 3ed84ae4bfa..3a504e17a6e 100644 --- a/run_page/generator/__init__.py +++ b/run_page/generator/__init__.py @@ -64,7 +64,10 @@ def sync(self, force): if self.only_run and activity.type != "Run": continue if IGNORE_BEFORE_SAVING: - activity.summary_polyline = filter_out(activity.summary_polyline) + if activity.map and activity.map.summary_polyline: + activity.map.summary_polyline = filter_out( + activity.map.summary_polyline + ) created = update_or_create_activity(self.session, activity) if created: sys.stdout.write("+")