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