Ignore:
Timestamp:
15 Feb 2019, 21:21:00 (6 years ago)
Author:
Henrik Bettermann
Message:

Set getattr default value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r15331 r15332  
    295295        #sgpa = '%s: %.2f' % (trans('Sessional GPA (rectified)', lang), level['sgpa'])
    296296        data.append(Paragraph(sgpa, style["Normal"]))
    297         if getattr(level_obj, 'remark'):
     297        if getattr(level_obj, 'remark', None):
    298298            remark = '%s: %s' % (
    299299                trans('Remark', lang), getattr(level_obj, 'remark'))
Note: See TracChangeset for help on using the changeset viewer.