fix missing import error (#12511)

Why I did it
syseepromd in pmon crashes because of missing import in python script and doesn't get in running state

How I did it
Fix missing import issue to avoid python script failing

How to verify it
Boot system and wait till syseepromd gets into running state
This commit is contained in:
Dmytro Lytvynenko 2022-10-27 11:08:57 +03:00 committed by GitHub
parent 558c904021
commit a4fe681b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ class Eeprom(eeprom_tlvinfo.TlvInfoDecoder):
try:
self._eeprom_bin = bytearray.fromhex(
thrift_try(tlv_eeprom_get, 1).raw_content_hex)
except TApplicationException as e:
except thrift.Thrift.TApplicationException as e:
raise RuntimeError("api is not supported")
except Exception as e:
self._eeprom_bin = bytearray.fromhex(