Testing when setting doesn't exist
This commit is contained in:
@ -15,7 +15,11 @@ from simpleplugin import Addon
|
||||
plugin = Plugin()
|
||||
connection = None
|
||||
|
||||
try:
|
||||
scrobbleEnabled = Addon().get_setting('scrobble')
|
||||
except:
|
||||
scrobbleEnabled = False
|
||||
|
||||
scrobbled = False
|
||||
|
||||
def popup(text, time=5000, image=None):
|
||||
|
||||
Reference in New Issue
Block a user