Skip to content

Commit

Permalink
Fix for issue #623
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmackie committed Nov 28, 2016
1 parent d8a512e commit 6462d70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion corpustools/corpus/classes/lexicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,10 @@ def update(self, old_word):
self._spelling_name = 'Spelling'
self.descriptors.append('Spelling')

self.Frequency = old_word.__dict__['frequency']
try:
self.Frequency = old_word.__dict__['frequency']
except KeyError:
self.Frequency = old_word.__dict__['Frequency']
try:
self.descriptors.remove('_frequency')
except ValueError:
Expand Down
3 changes: 0 additions & 3 deletions corpustools/corpus/classes/spontaneous.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

from collections import OrderedDict

from .lexicon import Transcription, Corpus, Attribute, Word

import os
import wave
import traceback
Expand Down

0 comments on commit 6462d70

Please sign in to comment.