Merge pull request #1327 from croneter/py2fix-attributeerror

Fix AttributeError: 'App' object has no attribute 'threads' when sync is cancelled
This commit is contained in:
croneter 2021-02-07 13:14:38 +01:00 committed by GitHub
commit 06a20a8358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,8 @@ class App(object):
def __init__(self, entrypoint=False): def __init__(self, entrypoint=False):
self.fetch_pms_item_number = None self.fetch_pms_item_number = None
self.force_reload_skin = None self.force_reload_skin = None
# All thread instances
self.threads = []
if entrypoint: if entrypoint:
self.load_entrypoint() self.load_entrypoint()
else: else:
@ -45,8 +47,6 @@ class App(object):
self.monitor = None self.monitor = None
# xbmc.Player() instance # xbmc.Player() instance
self.player = None self.player = None
# All thread instances
self.threads = []
# Instance of FanartThread() # Instance of FanartThread()
self.fanart_thread = None self.fanart_thread = None
# Instance of ImageCachingThread() # Instance of ImageCachingThread()