From 1e53d8ef504220b1cff8040cca4db437fba7e38b Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Sun, 9 Jan 2022 19:04:48 +0100 Subject: [PATCH] Slight cleanup --- src/Channel/SVT/__init__.py | 2 -- src/Utils/__init__.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Channel/SVT/__init__.py b/src/Channel/SVT/__init__.py index f2cec77..28a087e 100644 --- a/src/Channel/SVT/__init__.py +++ b/src/Channel/SVT/__init__.py @@ -61,10 +61,8 @@ class SVT(Channel): description = str(entry['description']) published_parsed = entry['published_parsed'] title = str(entry['title']) - print('pre') if not resolved_link: continue - print('post') thumbnail = make_bitmap_from_url( thumbnail_link, wx.Size(self.m_screen_width, 150)) item = Item(description, resolved_link, self.m_provider_name, diff --git a/src/Utils/__init__.py b/src/Utils/__init__.py index bd6fdfd..1ea227e 100644 --- a/src/Utils/__init__.py +++ b/src/Utils/__init__.py @@ -149,10 +149,10 @@ def get_subscriptions(basepath: str = BASEPATH, filename: str = DB_FILE_NAME) -> list[tuple[str, str]]: subscriptions = list() fullpath = path.join(basepath, filename) - con = sqlite3.connect(fullpath) - cur = con.cursor() - select_query = '''SELECT * FROM {}'''.format(SUB_TABLE) try: + con = sqlite3.connect(fullpath) + cur = con.cursor() + select_query = '''SELECT * FROM {}'''.format(SUB_TABLE) cur.execute(select_query) for result in cur.fetchall(): subscriptions.append(result)