forked from mirrors/bookwyrm
fixes error catching
This commit is contained in:
parent
9842e63cb4
commit
6caf45ac4f
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
||||||
# make users editors by default
|
# make users editors by default
|
||||||
try:
|
try:
|
||||||
self.groups.add(Group.objects.get(name='editor'))
|
self.groups.add(Group.objects.get(name='editor'))
|
||||||
except Group.objects.DoesNotExist:
|
except Group.DoesNotExist:
|
||||||
# this should never happen except in tests
|
# this should never happen except in tests
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue