Fix issue shortening non-string values

This commit is contained in:
2016-10-21 14:51:47 +02:00
parent be7ef81e96
commit 39ef2df380
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ def activity_after_replacing_shot(shot, original):
if key == 'properties.status':
val_shot = pillar.web.jinja.format_undertitle(val_shot)
elif len(val_shot) > 80:
elif isinstance(val_shot, basestring) and len(val_shot) > 80:
val_shot = val_shot[:80] + u''
descr = 'changed "%s" to "%s" in shot "%s"' %\