allow None as RRN_POP_SERVICE_URL

This commit is contained in:
Frédéric Péters 2017-02-08 13:32:22 +01:00
parent 745ea3cc32
commit 1a728f6768
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class AuthenticAdapter(DefaultAdapter):
return user_class.objects.create()
def provision_from_nrn(self, user, nrn):
if not hasattr(settings, 'RRN_POP_SERVICE_URL'):
if not getattr(settings, 'RRN_POP_SERVICE_URL', None):
return
logger = logging.getLogger(__name__)
try: