Commit 958ecdb0 by Chris Dodge

raise a more appropriate Exception

parent 547f4633
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment