From 607bb521585fe547b85e3f0d47620cf50f53ac11 Mon Sep 17 00:00:00 2001 From: warwickh Date: Wed, 29 Sep 2021 14:15:14 +1000 Subject: [PATCH] Clean up try/catch --- service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service.py b/service.py index b9b0bae..d829440 100644 --- a/service.py +++ b/service.py @@ -130,7 +130,7 @@ def refresh_artist(artist_id): def check_db_status(forced=False): global last_db_check refresh_single_flag = False - if 1:#try: + try: if(time.time()-check_freq > last_db_check) or forced: #popup("DB Check Starting") plugin.log("DB check starting %s %s" % (time.time(), last_db_check)) @@ -147,8 +147,8 @@ def check_db_status(forced=False): refresh_artist(artist_id) if(record_age>0):refresh_single_flag = True last_db_check = time.time() - #except Exception as e: - # plugin.log("DB check failed %s"%e) + except Exception as e: + plugin.log("DB status check failed %s"%e) return