pass exception through to calling function

This commit is contained in:
Matt 2020-08-15 00:03:34 -04:00
parent ae0dbc0400
commit d3d5c46c60

View file

@ -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):