Update punctuationManager.py

This commit is contained in:
chrys87 2016-10-04 17:20:23 +02:00 committed by GitHub
parent 9017009a70
commit dfaf31ffb5

View File

@ -98,8 +98,11 @@ class punctuationManager():
return resultText return resultText
def cyclePunctuation(self): def cyclePunctuation(self):
punctList = list(self.punctuation['levels'].keys()) punctList = list(self.punctuation['levels'].keys())
currIndex = punctList.index(self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()) # curr punctuation try:
currIndex = punctList.index(self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()) # curr punctuation
except:
return
currIndex += 1 currIndex += 1
if currIndex >= len(punctList): if currIndex >= len(punctList):
currIndex = 0 currIndex = 0