diff --git a/common/lib/xmodule/xmodule/xml_module.py b/common/lib/xmodule/xmodule/xml_module.py index edd10288de..043727d082 100644 --- a/common/lib/xmodule/xmodule/xml_module.py +++ b/common/lib/xmodule/xmodule/xml_module.py @@ -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