Skip to content

Commit

Permalink
Fix issue in get_table with zero-attribute table entries (sonic-net#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyl-ms authored Oct 30, 2017
1 parent 3b07479 commit 294f540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swsssdk/configdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_table(self, table):
try:
(_, row) = key.split(self.TABLE_NAME_SEPARATOR, 1)
entry = self.__raw_to_typed(client.hgetall(key))
if entry:
if entry != None:
data[self.deserialize_key(row)] = entry
except ValueError:
pass #Ignore non table-formated redis entries
Expand Down

0 comments on commit 294f540

Please sign in to comment.