Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 80deca3

Browse files
A more explicit version of #569 by @pjmyburg
Perhaps not very idiomatic but communicates the intent. Closes #568.
1 parent 8c95c87 commit 80deca3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/rabbitmqadmin

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,10 @@ class Lister:
809809

810810
def add_to_row(col, val):
811811
if col in column_ix:
812-
if val: row[column_ix[col]] = maybe_utf8(val)
812+
if val is not None:
813+
row[column_ix[col]] = maybe_utf8(val)
814+
else:
815+
row[column_ix[col]] = None
813816

814817
if len(self.columns) == 0:
815818
for item in items:

0 commit comments

Comments
 (0)