Skip to content

Commit

Permalink
Change the return value
Browse files Browse the repository at this point in the history
  • Loading branch information
roger530-ho authored and PJHsieh committed Sep 5, 2024
1 parent 4b3a0e0 commit 2a53696
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __get_conf_rev(self):
# Try to get the TLV field for the label revision
(is_valid, results) = eeprom.get_tlv_field(eeprom.eeprom_data, eeprom._TLV_CODE_LABEL_REVISION)
if not is_valid or results[2] is None:
return "N/A"
return None

label_rev = results[2].decode('ascii')

Expand All @@ -54,4 +54,4 @@ def __get_conf_rev(self):
except Exception as e:
pass

return "N/A"
return None

0 comments on commit 2a53696

Please sign in to comment.