Skip to content

Commit 1ee1664

Browse files
committed
Code improvement
1 parent c17cd54 commit 1ee1664

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

demo.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,6 @@ def get_solar_data(api: Garmin) -> None:
12871287
def upload_activity_file(api: Garmin) -> None:
12881288
"""Upload activity data from file."""
12891289
import glob
1290-
import os
12911290

12921291
try:
12931292
# List all .gpx files in test_data
@@ -1313,9 +1312,6 @@ def upload_activity_file(api: Garmin) -> None:
13131312
print("Please enter a valid number.")
13141313

13151314
print(f"📤 Uploading activity from file: {selected_file}")
1316-
if not os.path.exists(selected_file):
1317-
print(f"❌ File not found: {selected_file}")
1318-
return
13191315

13201316
result = api.upload_activity(selected_file)
13211317

0 commit comments

Comments
 (0)