We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c0a20 commit 5c65247Copy full SHA for 5c65247
garminconnect/__init__.py
@@ -1526,7 +1526,7 @@ def count_activities(self) -> int:
1526
logger.debug("Requesting activities count")
1527
1528
activities_count = self.connectapi(url)
1529
- if activities_count is None:
+ if not activities_count or "totalCount" not in activities_count:
1530
raise GarminConnectConnectionError("No activities count data received")
1531
return activities_count["totalCount"]
1532
0 commit comments