mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Mark helper.exceptions.HTTPException as deprecated
This commit is contained in:
parent
4c6b69abf6
commit
704c8829f0
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue