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
def cyclePunctuation(self):
punctList = list(self.punctuation['levels'].keys())
currIndex = punctList.index(self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()) # curr punctuation
punctList = list(self.punctuation['levels'].keys())
try:
currIndex = punctList.index(self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()) # curr punctuation
except:
return
currIndex += 1
if currIndex >= len(punctList):
currIndex = 0