Add a test which reproduces #344 and fix the handling code

Fix #344
This commit is contained in:
Bruno Oliveira
2018-09-27 22:18:52 -03:00
parent 22e36c9cb4
commit b176b37606
2 changed files with 31 additions and 4 deletions

View File

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