Skip to content

Commit 3fb918b

Browse files
committed
Added a TextGridToolsException.
1 parent f5bed12 commit 3fb918b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tgt/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from .core import Tier, IntervalTier, PointTier
2323
from .core import Annotation, Interval, Point
2424
from .core import Time
25+
from .core import TextGridToolsException
2526

2627
if sys.version_info < (3, 0):
2728
from . import io

tgt/core.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@
3030
'TextGrid',
3131
'Tier', 'IntervalTier', 'PointTier',
3232
'Annotation', 'Interval', 'Point',
33-
'Time'
33+
'Time',
34+
'TextGridToolsException',
3435
]
3536

3637

38+
class TextGridToolsException(Exception):
39+
pass
40+
41+
3742
class TextGrid(object):
3843
'''A TextGrid.'''
3944

0 commit comments

Comments
 (0)