Skip to content

Commit a4a7123

Browse files
author
Alan Christie
committed
- UnknownType is now UnknownTypeError
1 parent fc16728 commit a4a7123

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/python/pipelines_utils/TypedColumnReader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Error(Exception):
3333
pass
3434

3535

36-
class UnknownType(Error):
36+
class UnknownTypeError(Error):
3737
"""Exception raised for an unknown type in the header.
3838
3939
Attributes:
@@ -222,7 +222,7 @@ def _handle_hdr(self, hdr):
222222
if len(cell_parts) == 2:
223223
column_type = cell_parts[1].lower()
224224
if column_type not in CONVERTERS:
225-
raise UnknownType(column_number, column_type)
225+
raise UnknownTypeError(column_number, column_type)
226226
else:
227227
# Unspecified - assume built-in 'string'
228228
column_type = 'string'

src/python/test/python2_3/pipelines_utils/test_TypedColumnReader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_basic_example_b_unknown_type(self):
5050
try:
5151
for _ in test_file:
5252
num_lines += 1
53-
except TypedColumnReader.UnknownType as e:
53+
except TypedColumnReader.UnknownTypeError as e:
5454
self.assertEqual(4, e.column)
5555
self.assertAlmostEqual('unknown-type', e.column_type)
5656
got_exception = True

0 commit comments

Comments
 (0)