fix TypeError: cannot concatenate 'str' and 'NoneType' objects

LEARNER-5369
This commit is contained in:
Tasawer Nawaz
2018-05-21 17:35:54 +05:00
parent 93809a8497
commit b21fec305a

View File

@@ -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: