File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -278,23 +278,15 @@ def from_dict(self, mapdict):
278
278
279
279
def lcd_ava_from (self , attribute ):
280
280
"""
281
- In nothing else works, this should
281
+ If nothing else works, this should
282
282
283
- :param attribute: An Attribute Instance
283
+ :param attribute: an Attribute instance
284
284
:return:
285
285
"""
286
- try :
287
- name = attribute .friendly_name .strip ()
288
- except AttributeError :
289
- name = attribute .name .strip ()
290
-
291
- values = []
292
- for value in attribute .attribute_value :
293
- if not value .text :
294
- values .append ('' )
295
- else :
296
- values .append (value .text .strip ())
297
-
286
+ name = attribute .name .strip ()
287
+ values = [
288
+ (value .text or '' ).strip ()
289
+ for value in attribute .attribute_value ]
298
290
return name , values
299
291
300
292
def fail_safe_fro (self , statement ):
You can’t perform that action at this time.
0 commit comments