Fix issue shortening non-string values
This commit is contained in:
@@ -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"' %\
|
||||
|
Reference in New Issue
Block a user