From d3d5c46c602bd8e84fef5a9a0a8bc1203fef24d2 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 15 Aug 2020 00:03:34 -0400 Subject: [PATCH] pass exception through to calling function --- jellyfin_kodi/database/jellyfin_db.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/jellyfin_kodi/database/jellyfin_db.py b/jellyfin_kodi/database/jellyfin_db.py index 97f1e23f..92b6d69f 100644 --- a/jellyfin_kodi/database/jellyfin_db.py +++ b/jellyfin_kodi/database/jellyfin_db.py @@ -105,13 +105,9 @@ class JellyfinDatabase(): def get_view_name(self, item_id): - try: - self.cursor.execute(QU.get_view_name, (item_id,)) + self.cursor.execute(QU.get_view_name, (item_id,)) - return self.cursor.fetchone()[0] - except Exception as error: - LOG.exception(error) - return + return self.cursor.fetchone()[0] def get_view(self, *args):