Skip to content

Commit

Permalink
fix: missing if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekenhei committed Sep 13, 2024
1 parent d694497 commit ccbd943
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openedx/core/djangoapps/user_authn/views/registration_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def get_registration_extension_form(*args, **kwargs):
# No Default valued is passed since we prioritize site configurations over site settings.
registration_extra_form = configuration_helpers.get_value('REGISTRATION_EXTENSION_FORM',
settings.REGISTRATION_EXTENSION_FORM)
if not registration_extra_form:
return None
module, klass = registration_extra_form.rsplit('.', 1)
module = import_module(module)
return getattr(module, klass)(*args, **kwargs)
Expand Down

0 comments on commit ccbd943

Please sign in to comment.