Merge pull request #18239 from edx/tasawer/learner-5369/fix-error-concatenate-str-with-none
Fix TypeError: cannot concatenate 'str' and 'NoneType' objects
This commit is contained in:
@@ -48,7 +48,7 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
|
||||
%>
|
||||
<%
|
||||
mode_class = course_verified_certs.get('display_mode', '')
|
||||
if mode_class != '':
|
||||
if mode_class:
|
||||
mode_class = ' ' + mode_class ;
|
||||
%>
|
||||
% else:
|
||||
|
||||
Reference in New Issue
Block a user