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 ddc1a92 commit f571de3Copy full SHA for f571de3
src/agouti_shred.py
@@ -13,11 +13,12 @@ def get_attributes(attribute):
13
dAttrs = {}
14
tmp_attributes = attribute.split(';')
15
for i in range(len(tmp_attributes)):
16
- tmp_attribute = tmp_attributes[i].split('=')
17
- attributeName = tmp_attribute[0]
18
- attributeValue = tmp_attribute[1]
19
- if attributeName not in dAttrs:
20
- dAttrs[attributeName] = attributeValue
+ if tmp_attributes[i]:
+ tmp_attribute = tmp_attributes[i].split('=')
+ attributeName = tmp_attribute[0]
+ attributeValue = tmp_attribute[1]
+ if attributeName not in dAttrs:
21
+ dAttrs[attributeName] = attributeValue
22
23
return dAttrs
24
0 commit comments