Commit 9842db78 authored by Thijs de Jong's avatar Thijs de Jong
Browse files

Cleaned some Code

parent 9f0f9085
...@@ -129,9 +129,10 @@ class MemberGroup(models.Model, metaclass=ModelTranslateMeta): ...@@ -129,9 +129,10 @@ class MemberGroup(models.Model, metaclass=ModelTranslateMeta):
try: try:
return self.committee.get_absolute_url() return self.committee.get_absolute_url()
except self.DoesNotExist: except self.DoesNotExist:
return self.society.get_absolute_url() try:
except self.DoesNotExist: return self.society.get_absolute_url()
pass except self.DoesNotExist:
pass
class Meta: class Meta:
verbose_name = _('member group') verbose_name = _('member group')
......
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