Monstergerm wrote:If I ever figure out why it cannot read the settings on first launch I will add this fix too.
That sounds like a challenge - and I accept the challenge.
(Only kidding, but i've spent the last 2 hours trying to identify the bug for you!)
You've (or the original author) added logLevel to the pluginConfig.xml but it doesn't exist in self.pluginPrefs until you edit/save the config, therefore getConfiguration() throws an exception whenever it tries to access valuesDict["logLevel"] on line 845.
Change:
- Code: Select all
self.logLevel = int(self.pluginPrefs[u"logLevel"]) #new routine
to
- Code: Select all
self.logLevel = int(self.pluginPrefs.get(u"logLevel",20)) #new routine
so that if logLevel isn't there, it returns a default value rather than erroring.
You could do the same on line 93, though you've already handled that exception so it's not causing any issues as it is.
Peter