Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Ignore errors generating XML
Browse files Browse the repository at this point in the history
  • Loading branch information
huksley committed May 4, 2020
1 parent f63c39d commit 2deb664
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Huawei-TCX-Converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,11 @@ def _generate_swim_xml_data(self, el_activity):
def save(self, tcx_filename: str = None):
if not self.training_center_database:
# Call generation of TCX XML date if not already done
self.generate_xml()
try:
self.generate_xml()
except Exception as e:
logging.info('Error generating XML for HiTrack activity <%s>\n%s', self.hi_activity.activity_id, e)
return

# Format and save the TCX XML file
if not tcx_filename:
Expand Down

0 comments on commit 2deb664

Please sign in to comment.