Skip to content

Commit

Permalink
Prevent error on missing features
Browse files Browse the repository at this point in the history
Addresses the symptoms of #348, but doesn't fix the underlying issues
  • Loading branch information
mmcauliffe committed Mar 1, 2015
1 parent 109dbc3 commit 7fa6de1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions corpustools/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,10 @@ def __init__(self, title,inventory,parent=None):
vowColumns = set()
vowRows = set()
for s in self.inventory:
c = s.category
try:
c = s.category
except KeyError:
c = None
if c is not None:
if c[0] == 'Vowel':
vowColumns.add(c[2])
Expand Down Expand Up @@ -794,7 +797,10 @@ def __init__(self, title,inventory,parent=None):
unkRow = 0
unkCol = -1
for s in inventory:
cat = s.category
try:
cat = s.category
except KeyError:
cat = None
btn = SegmentButton(s.symbol)
btn.setCheckable(True)
btn.setAutoExclusive(False)
Expand Down

0 comments on commit 7fa6de1

Please sign in to comment.