Skip to content

Commit

Permalink
GH-109: Improve error message when there are no activities
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-ueding committed Jun 9, 2024
1 parent ca6a84b commit ed24682
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions geo_activity_playground/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ def make_activity_repository(
if "strava" in config and not skip_strava:
import_from_strava_api(repository)

if len(repository) == 0:
logger.error(
f"No activities found. You need to either add activity files (GPX, FIT, …) to {basedir/'Activities'} or set up the Strava API. Starting without any activities is unfortunately not supported."
)
sys.exit(1)

embellish_time_series(repository)
compute_tile_visits(repository)
compute_tile_evolution()
Expand Down

0 comments on commit ed24682

Please sign in to comment.