add error handling in api thread

This commit is contained in:
anonymous
2019-12-20 13:06:53 +00:00
parent ae72227fd2
commit f4698446d9

View File

@@ -135,7 +135,11 @@ class APILoader:
def run(self):
while True:
self.loadData()
try:
self.loadData()
except Exception as e:
print("Unable to load API data:", e)
time.sleep(self.delay)
def loadData(self):