Fix getloglevel error that occurs sometimes

During fresh install where settings might not be created yet.
This commit is contained in:
angelblue05 2015-07-18 04:07:58 -05:00
parent 0c54257de6
commit d974c4ed7c

View file

@ -67,7 +67,11 @@ class UserClient(threading.Thread):
def getLogLevel(self): def getLogLevel(self):
try:
logLevel = int(self.addon.getSetting('logLevel')) logLevel = int(self.addon.getSetting('logLevel'))
except:
logLevel = 0
return logLevel return logLevel
def getUserId(self): def getUserId(self):