From fceef4d85aa4704ff0dda319aebf1af0b698de98 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Fri, 2 Jun 2017 07:33:31 -0400 Subject: [PATCH] Use class name for ImmutableError message. --- stix2/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/exceptions.py b/stix2/exceptions.py index 1165ecf..3043047 100644 --- a/stix2/exceptions.py +++ b/stix2/exceptions.py @@ -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)