File size: 556 Bytes
b7b7347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

class SponsorBlockException(Exception):
    """Base class for all sponsor block exceptions"""
    pass


class InferenceException(SponsorBlockException):
    """An exception occurred while predicting sponsor segments"""
    pass


class TranscriptError(SponsorBlockException):
    """An exception occurred while retrieving the video transcript"""
    pass


class ModelError(SponsorBlockException):
    """Base class for model-related errors"""
    pass


class ModelLoadError(ModelError):
    """An exception occurred while loading the model"""
    pass