See Issue #124, defaulted to empty string instead of None
continuous-integration/drone/pr Build was killed
Details
continuous-integration/drone/pr Build was killed
Details
This commit is contained in:
parent
a4a4ef089c
commit
36c8d076fe
|
@ -14,7 +14,7 @@ class GetPositionsView(ColumnView):
|
|||
avail = cfg.get('positions_available')
|
||||
rows = []
|
||||
for pos in avail:
|
||||
name = position_names[pos]
|
||||
name = position_names.get(pos, '')
|
||||
field = urwid.Text('...')
|
||||
self.position_fields[pos] = field
|
||||
self.model.positions[pos] = ''
|
||||
|
|
|
@ -38,4 +38,4 @@ class SetPositionsView(ColumnView):
|
|||
|
||||
def update_fields(self):
|
||||
for pos, field in self.position_fields.items():
|
||||
field.edit_text = self.model.positions[pos]
|
||||
field.edit_text = self.model.positions.get(pos, '')
|
||||
|
|
Loading…
Reference in New Issue