mirror of https://github.com/ARMmbed/mbed-os.git
Added in safety check if details_txt is None
parent
aafe61414e
commit
7b4959125f
|
@ -114,6 +114,10 @@ def get_interface_version(mount_point):
|
|||
mbeds = mbed_lstools.create()
|
||||
details_txt = mbeds.get_details_txt(mount_point)
|
||||
|
||||
if (details_txt is None):
|
||||
details_txt = {}
|
||||
|
||||
|
||||
if 'Interface Version' in details_txt:
|
||||
return details_txt['Interface Version']
|
||||
|
||||
|
|
Loading…
Reference in New Issue