Skip to content

Commit

Permalink
Fix error due to comparing None with int (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitchoi committed Jul 8, 2020
1 parent 117457c commit 2bec2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traitsui/wx/tabular_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ def save_prefs(self):
"""
cws = self._cached_widths
if cws is not None:
cws = [(None, cw)[cw >= 0] for cw in cws]
cws = [cw if cw is not None and cw >= 0 else None for cw in cws]

return {"cached_widths": cws}

Expand Down

0 comments on commit 2bec2b2

Please sign in to comment.