Commit b5e43c80 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix line length

parent 8c89ca91
......@@ -56,11 +56,12 @@ def get_backend(request):
"""
Returns an instance of an activation backend,
according to the INVITATIONS_ENABLED setting
(if True returns ``astakos.im.activation_backends.InvitationsBackend`` and if False
(if True returns ``astakos.im.activation_backends.InvitationsBackend``
and if False
returns ``astakos.im.activation_backends.SimpleBackend``).
If the backend cannot be located ``django.core.exceptions.ImproperlyConfigured``
is raised.
If the backend cannot be located
``django.core.exceptions.ImproperlyConfigured`` is raised.
"""
module = 'astakos.im.activation_backends'
prefix = 'Invitations' if INVITATIONS_ENABLED else 'Simple'
......@@ -73,7 +74,9 @@ def get_backend(request):
try:
backend_class = getattr(mod, backend_class_name)
except AttributeError:
raise ImproperlyConfigured('Module "%s" does not define a activation backend named "%s"' % (module, backend_class_name))
raise ImproperlyConfigured(
'Module "%s" does not define a activation backend named "%s"' % (
module, backend_class_name))
return backend_class(request)
......
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