diff --git a/common/lib/xmodule/xml_module.py b/common/lib/xmodule/xml_module.py
index d6338aeb39a4fe513eccff01f95386f210dab069..fa275c67d3107eeb62fbc8cbab25c0444596b5c4 100644
--- a/common/lib/xmodule/xml_module.py
+++ b/common/lib/xmodule/xml_module.py
@@ -13,7 +13,7 @@ class XmlDescriptor(XModuleDescriptor):
         Return the definition to be passed to the newly created descriptor
         during from_xml
         """
-        raise NotImplementedError("%s does not implement definition_from_xml" % cls.__class__.__name__)
+        raise NotImplementedError("%s does not implement definition_from_xml" % cls.__name__)
 
     @classmethod
     def from_xml(cls, xml_data, system, org=None, course=None):