From abace28c8ab1e4b7e926a2f6b2f96a9298579a16 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Wed, 18 Sep 2024 15:18:27 +0500 Subject: [PATCH] fix: resolved linter issues --- openedx/core/djangoapps/user_api/accounts/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/user_api/accounts/api.py b/openedx/core/djangoapps/user_api/accounts/api.py index 4db20539f93b..6cc466ba0038 100644 --- a/openedx/core/djangoapps/user_api/accounts/api.py +++ b/openedx/core/djangoapps/user_api/accounts/api.py @@ -151,7 +151,7 @@ def update_account_settings(requesting_user, update, username=None): _validate_email_change(user, update, field_errors) _validate_secondary_email(user, update, field_errors) - if update.get('country','') in settings.DISABLED_COUNTRIES: + if update.get('country', '') in settings.DISABLED_COUNTRIES: field_errors['country'] = { 'developer_message': 'Country is disabled for registration', 'user_message': 'This country cannot be selected for user registration'