BOM-2442
pyupgrade in enterprise_support
This commit is contained in:
@@ -165,10 +165,10 @@ def update_third_party_auth_context_for_enterprise(request, context, enterprise_
|
||||
"""
|
||||
if context['data']['third_party_auth']['errorMessage']:
|
||||
context['data']['third_party_auth']['errorMessage'] = Text(_(
|
||||
u'We are sorry, you are not authorized to access {platform_name} via this channel. '
|
||||
u'Please contact your learning administrator or manager in order to access {platform_name}.'
|
||||
u'{line_break}{line_break}'
|
||||
u'Error Details:{line_break}{error_message}')
|
||||
'We are sorry, you are not authorized to access {platform_name} via this channel. '
|
||||
'Please contact your learning administrator or manager in order to access {platform_name}.'
|
||||
'{line_break}{line_break}'
|
||||
'Error Details:{line_break}{error_message}')
|
||||
).format(
|
||||
platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME),
|
||||
error_message=context['data']['third_party_auth']['errorMessage'],
|
||||
|
||||
Reference in New Issue
Block a user