From 704c8829f0645a6541322cbe26cabda2f468e3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Sat, 18 May 2024 01:50:50 +0200 Subject: [PATCH] Mark helper.exceptions.HTTPException as deprecated --- jellyfin_kodi/helper/exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jellyfin_kodi/helper/exceptions.py b/jellyfin_kodi/helper/exceptions.py index 2a53b008..12105ed8 100644 --- a/jellyfin_kodi/helper/exceptions.py +++ b/jellyfin_kodi/helper/exceptions.py @@ -1,12 +1,15 @@ # -*- coding: utf-8 -*- from __future__ import division, absolute_import, print_function, unicode_literals +import warnings + ################################################################################################# class HTTPException(Exception): # Jellyfin HTTP exception def __init__(self, status, message): + warnings.warn(f'{self.__class__.__name__} will be deprecated.', DeprecationWarning, stacklevel=2) self.status = status self.message = message