Index: /WAeUP_SRP/base/WAeUPTool.py
===================================================================
--- /WAeUP_SRP/base/WAeUPTool.py	(revision 2350)
+++ /WAeUP_SRP/base/WAeUPTool.py	(revision 2351)
@@ -702,5 +702,5 @@
         if os.path.exists(picture_path):
             return open(picture_path).read()
-        
+
 
     ###)
@@ -1091,5 +1091,5 @@
         if getattr(self,'_v_courses',None) is None:
             res = self.courses_catalog()
-            self._v_courses= [course.code for course in res]  
+            self._v_courses= [course.code for course in res]
         if getattr(self,'_v_ceritficates',None) is None:
             res = self.portal_catalog(portal_type = "Certificate")
@@ -1098,5 +1098,5 @@
                 self._v_certificates[cert.getId] = cert.getObject()
         certificate_course_id = mapping.get('code')
-        if certificate_course_id not in self._v_courses: 
+        if certificate_course_id not in self._v_courses:
             return '', "No Course with ID: %s" % certificate_course_id
         cert_id = mapping['certificate_code']
@@ -1480,6 +1480,6 @@
                     continue
                 #import pdb;pdb.set_trace()
-                image = getattr(doc,key)
-                if not hasattr(image,"data"):
+                image = getattr(doc,key,None)
+                if not image or not hasattr(image,"data"):
                     continue
                 if not created:
