Mark helper.exceptions.HTTPException as deprecated

This commit is contained in:
Odd Stråbø 2024-05-18 01:50:50 +02:00
parent 4c6b69abf6
commit 704c8829f0

View file

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