Skip to content

Commit

Permalink
[sfputilbase.py] Don't try to print EEPROM sysfs file name if we fail…
Browse files Browse the repository at this point in the history
…ed to read from it (sonic-net#81)

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
  • Loading branch information
chiourung authored Jun 3, 2020
1 parent 4040326 commit 330af83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_platform_base/sonic_sfp/sfputilbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _read_eeprom_specific_bytes(self, sysfsfile_eeprom, offset, num_bytes):
sysfsfile_eeprom.seek(offset)
raw = sysfsfile_eeprom.read(num_bytes)
except IOError:
print("Error: reading sysfs file %s" % sysfs_sfp_i2c_client_eeprom_path)
print("Error: reading EEPROM sysfs file")
return None

try:
Expand Down

0 comments on commit 330af83

Please sign in to comment.