Commit 8c8a3f08 authored by Michal Čihař's avatar Michal Čihař

These should raise only KeyError

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 5533c11a
......@@ -317,13 +317,13 @@ class Check(models.Model, RelatedUnitMixin):
def get_description(self):
try:
return CHECKS[self.check].description
except:
except KeyError:
return self.check
def get_doc_url(self):
try:
return CHECKS[self.check].get_doc_url()
except:
except KeyError:
return ''
def set_ignore(self):
......
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 to comment