use module name and class name for method instead of the reference to them

This commit is contained in:
Brandon Hoffman
2018-09-27 19:27:49 -05:00
parent 5d5f87b600
commit 8825e7e234

View File

@@ -429,8 +429,8 @@ def unserialize_warning_message(data):
try:
message = cls(*data["message_args"])
except TypeError:
message_text = "{mod}.{class}: {msg}".format(mod=mod,
cls=cls,
message_text = "{mod}.{class}: {msg}".format(mod=data["message_module"],
cls=data["message_class_name"],
msg=data["message_str"])
message = Warning(message_text)
else: