projects
/
pyrungps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Empty file (GPS.Sport storage backend failure) handling.
[pyrungps.git]
/
pyrungps
/
pyrungps_sync.py
diff --git
a/pyrungps/pyrungps_sync.py
b/pyrungps/pyrungps_sync.py
index 18c2235c34ac667f1dec830e22980745a9ee2ea6..67362156ea82d66235aeccc78f1dc826017a84fe 100644
(file)
--- a/
pyrungps/pyrungps_sync.py
+++ b/
pyrungps/pyrungps_sync.py
@@
-189,6
+189,10
@@
def sync_db(dbx,username,year,month,dir=".",verbose=False,force=False):
sport = training['sport']
timestamp = gpx.tracks[0].start_time()
+
+ if not(timestamp):
+ print("Empty training found, skipping...")
+ continue
print(sport, timestamp)