Testing when setting doesn't exist

This commit is contained in:
Warwick Harris 2021-09-09 12:10:43 +10:00
parent 0932e650f8
commit 67bd25496e
1 changed files with 5 additions and 1 deletions

View File

@ -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):