From be3454ca1ea658cbca165c50e9eb4f5af690c989 Mon Sep 17 00:00:00 2001 From: TOomaAh Date: Thu, 28 Aug 2025 23:26:56 +0200 Subject: [PATCH] refactor(tvdb): remove unnecessary try/catch block --- server/api/tvdb/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/server/api/tvdb/index.ts b/server/api/tvdb/index.ts index b083ebf1d..82134823e 100644 --- a/server/api/tvdb/index.ts +++ b/server/api/tvdb/index.ts @@ -65,13 +65,8 @@ class Tvdb extends ExternalAPI implements TvShowProvider { public static async getInstance(): Promise { if (!this.instance) { - try { - this.instance = new Tvdb(); - await this.instance.login(); - } catch (error) { - logger.error(`Failed to login to TVDB: ${error.message}`); - throw new Error('TVDB API key is not set'); - } + this.instance = new Tvdb(); + await this.instance.login(); } return this.instance;