Joshua Lochner commited on
Commit
0b7cd5a
·
1 Parent(s): 8f0e2d8

Update errors

Browse files
Files changed (1) hide show
  1. src/errors.py +12 -2
src/errors.py CHANGED
@@ -4,10 +4,20 @@ class SponsorBlockException(Exception):
4
 
5
 
6
  class PredictionException(SponsorBlockException):
7
- """An exception was occurred while predicting sponsor segments"""
8
  pass
9
 
10
 
11
  class TranscriptError(SponsorBlockException):
12
- """An exception was occurred while retrieving the video transcript"""
 
 
 
 
 
 
 
 
 
 
13
  pass
 
4
 
5
 
6
  class PredictionException(SponsorBlockException):
7
+ """An exception occurred while predicting sponsor segments"""
8
  pass
9
 
10
 
11
  class TranscriptError(SponsorBlockException):
12
+ """An exception occurred while retrieving the video transcript"""
13
+ pass
14
+
15
+
16
+ class ModelError(SponsorBlockException):
17
+ """Base class for model-related errors"""
18
+ pass
19
+
20
+
21
+ class ModelLoadError(ModelError):
22
+ """An exception occurred while loading the model"""
23
  pass