Testing when setting doesn't exist
This commit is contained in:
@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user