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 0d6a748 commit bb54ac8Copy full SHA for bb54ac8
fitparse/records.py
@@ -363,7 +363,10 @@ def parse_string(string):
363
def add_dev_data_id(message):
364
global DEV_TYPES
365
dev_data_index = message.get('developer_data_index').raw_value
366
- application_id = message.get('application_id').raw_value
+ if message.get('application_id'):
367
+ application_id = message.get('application_id').raw_value
368
+ else:
369
+ application_id = None
370
371
# Note that nothing in the spec says overwriting an existing type is invalid
372
DEV_TYPES[dev_data_index] = {'dev_data_index': dev_data_index, 'application_id': application_id, 'fields': {}}
0 commit comments