diff --git a/mayan/apps/common/templatetags/common_tags.py b/mayan/apps/common/templatetags/common_tags.py index 283b2c1f0c..a4f6b40b42 100644 --- a/mayan/apps/common/templatetags/common_tags.py +++ b/mayan/apps/common/templatetags/common_tags.py @@ -70,6 +70,9 @@ def render_subtemplate(context, template_name, template_context): @register.assignment_tag def build(): if BUILD: - return '{} {}'.format(BUILD(), DATE().decode()) + try: + return '{} {}'.format(BUILD(), DATE().decode()) + except sh.ErrorReturnCode_128: + return '' else: - return 'No build information' + return ''