mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 02:05:51 +02:00
add get_torrent_by_id dependency, add 404 error message and make NotFoundException globally available
This commit is contained in:
10
media_manager/exceptions.py
Normal file
10
media_manager/exceptions.py
Normal file
@@ -0,0 +1,10 @@
|
||||
class MediaAlreadyExists(ValueError):
|
||||
"""Raised when a show already exists"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class NotFoundError(Exception):
|
||||
"""Custom exception for when an entity is not found."""
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user