From 56542470f596180d12e3dd8d068f6f6de10251ee Mon Sep 17 00:00:00 2001 From: Őry Máté <ory.mate@cloud.bme.hu> Date: Mon, 8 Sep 2014 13:42:14 +0200 Subject: [PATCH] common: don't force setting HRE level --- circle/common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle/common/models.py b/circle/common/models.py index 64f3fd5..6904b3c 100644 --- a/circle/common/models.py +++ b/circle/common/models.py @@ -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'.") - else: + elif not hasattr(self, "level"): self.level = "error" def send_message(self, request, level=None): -- libgit2 0.26.0