Release Artist Slideshow addon (with skin and addon integration)
(2020-01-04, 22:19)scott967 Wrote: I also see the ERROR: EXCEPTION: Invalid setting type but I don't see anything wrong in settings.xml.  TBH I don't understand what Kodi debug log is logging when addon settings are used (there's the old settings and new settings and they've been a moving target).

I have a wrapper for the xbmcadd.Addon().getSetting stuff (i.e. getSettingInt, etc) so that I can use the same call in older versions of Kodi and newer ones. Apparently if you use getSettingInt to get a setting that doesn't exist (and there's a particular case in my code where that is true, it's a long reason), Python throws a Type Error. In the wrapper I trap for that error and then return a default value, but Kodi logs that Invalid Type anyway. If you use the older getSetting, it returns an empty string if the setting isn't found and no error is logged. I rewrote the wrapper to stop using getSettingInt and instead just try and force getSetting into an int (which is what I was doing for older Kodi versions anyway). If the int conversion fails it generates a python Value Error. Since I trap for that and return the default value, Kodi doesn't log anything about any errors.

So basically the solution is to stop using the newer getSettingInt, getSettingNumber, or getSettingBool so you get fewer log entries with errors. '-)
Reply


Messages In This Thread
New Test Version Available - by pkscout - 2012-03-08, 16:26
[No subject] - by mardup - 2012-03-10, 12:26
[No subject] - by pkscout - 2012-03-11, 01:35
RE: - by mardup - 2012-03-12, 17:50
RE: - by pkscout - 2012-03-13, 03:22
New Beta Version for Testing - by pkscout - 2012-07-13, 17:54
New Beta Version for Testing - by pkscout - 2012-07-14, 22:50
Pull Request for v1.4 Submitted - by pkscout - 2012-07-20, 23:01
New Beta Version for Testing - by pkscout - 2012-08-10, 03:18
New Frodo BETA Support Files - by pkscout - 2012-11-21, 06:20
New 2.0.0 Beta Coming Soon - by pkscout - 2016-05-12, 02:54
Writing tips - by Parkerbup - 2017-02-03, 14:56
RE: Artist Slideshow addon (with skin and addon integration) - by pkscout - 2020-01-05, 00:35
Add-on Artist Slideshow - by jo26 - 2014-08-08, 22:58
Logout Mark Read Team Forum Stats Members Help
Artist Slideshow addon (with skin and addon integration)5