Commit 56542470 by Őry Máté

common: don't force setting HRE level

parent c766e690
......@@ -488,7 +488,7 @@ class HumanReadableException(HumanReadableObject, Exception):
"Level should be the name of an attribute of django."
"contrib.messages (and it should be callable with "
"(request, message)). Like 'error', 'warning'.")
elif not hasattr(self, "level"):
self.level = "error"
def send_message(self, request, level=None):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment