Use class name for ImmutableError message.

stix2.1
Emmanuelle Vargas-Gonzalez 2017-06-02 07:33:31 -04:00
parent 0cf0f97143
commit fceef4d85a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class ImmutableError(STIXError, ValueError):
self.key = key
def __str__(self):
msg = "Cannot modify '{0.key}' property in {0.cls} after creation."
msg = "Cannot modify '{0.key}' property in '{0.cls.__name__}' after creation."
return msg.format(self)