add get_torrent_by_id dependency, add 404 error message and make NotFoundException globally available

This commit is contained in:
maxDorninger
2025-06-08 18:39:45 +02:00
parent 5dabb5c0d7
commit 3d9e9d00d0
9 changed files with 39 additions and 14 deletions

View 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