raise a more appropriate Exception

This commit is contained in:
Chris Dodge
2013-07-12 12:47:51 -04:00
parent 547f4633d5
commit 958ecdb053

View File

@@ -93,7 +93,7 @@ def serialize_string_literal(value):
Assert that the value is a base string and - if it is - simply return it
"""
if not isinstance(value, basestring):
raise Exception('Value {0} is not of type basestring!'.format(value))
raise TypeError('Value {0} is not of type basestring!'.format(value))
return value