fixed possible reference before assignment

Change-Id: Ib0da0ff3a6052bf179f52502ad4ea3448178e0f0
This commit is contained in:
the.bling 2017-04-04 14:48:48 +05:30
parent 9ead55fde6
commit b0295237b9
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ def print_list(objs, fields, formatters=None, sortby_index=0,
else:
field_name = field.lower().replace(' ', '_')
data = getattr(o, field_name, '')
row.append(data)
row.append(data)
pt.add_row(row)
if six.PY3: