Skip to content

Exceptions

Custom exceptions for RTN.

Exceptions: - GarbageTorrent: Raised when a torrent is considered garbage or invalid and should be ignored.

Refer to the respective docstrings for more information.

GarbageTorrent

Bases: Exception

Raised when a torrent is considered garbage or invalid and should be ignored.

Source code in RTN/exceptions.py
10
11
class GarbageTorrent(Exception):
    """Raised when a torrent is considered garbage or invalid and should be ignored."""

SettingsDisabled

Bases: Exception

Raised when the settings are disabled and cannot be used.

Source code in RTN/exceptions.py
13
14
class SettingsDisabled(Exception):
    """Raised when the settings are disabled and cannot be used."""