From b21fec305acc108768e2ebc0e6d82aec841f59a5 Mon Sep 17 00:00:00 2001
From: Tasawer Nawaz <tasawer.nawaz@arbisoft.com>
Date: Mon, 21 May 2018 17:35:54 +0500
Subject: [PATCH] fix TypeError: cannot concatenate 'str' and 'NoneType'
 objects LEARNER-5369

---
 lms/templates/dashboard/_dashboard_course_listing.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html
index ff488593506..17628ff53b2 100644
--- a/lms/templates/dashboard/_dashboard_course_listing.html
+++ b/lms/templates/dashboard/_dashboard_course_listing.html
@@ -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:
-- 
GitLab