Fix getloglevel error that occurs sometimes
During fresh install where settings might not be created yet.
This commit is contained in:
parent
0c54257de6
commit
d974c4ed7c
1 changed files with 5 additions and 1 deletions
|
@ -67,7 +67,11 @@ class UserClient(threading.Thread):
|
|||
|
||||
def getLogLevel(self):
|
||||
|
||||
logLevel = int(self.addon.getSetting('logLevel'))
|
||||
try:
|
||||
logLevel = int(self.addon.getSetting('logLevel'))
|
||||
except:
|
||||
logLevel = 0
|
||||
|
||||
return logLevel
|
||||
|
||||
def getUserId(self):
|
||||
|
|
Loading…
Reference in a new issue