From 67bd25496e1718c54e01d7cd6e33f01dac72543c Mon Sep 17 00:00:00 2001 From: Warwick Harris Date: Thu, 9 Sep 2021 12:10:43 +1000 Subject: [PATCH] Testing when setting doesn't exist --- service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/service.py b/service.py index 5190f6c..835a6f4 100644 --- a/service.py +++ b/service.py @@ -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):