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()
|
plugin = Plugin()
|
||||||
connection = None
|
connection = None
|
||||||
|
|
||||||
scrobbleEnabled = Addon().get_setting('scrobble')
|
try:
|
||||||
|
scrobbleEnabled = Addon().get_setting('scrobble')
|
||||||
|
except:
|
||||||
|
scrobbleEnabled = False
|
||||||
|
|
||||||
scrobbled = False
|
scrobbled = False
|
||||||
|
|
||||||
def popup(text, time=5000, image=None):
|
def popup(text, time=5000, image=None):
|
||||||
|
|
Loading…
Reference in New Issue