else:
anim_data = context.active_object.animation_data
if not anim_data:
- raise Exception("Object has no animation data")
+ raise Exception("Object {} has no animation data".format(context.active_object.name))
if not anim_data.action:
- raise Exception("No active action")
+ raise Exception("Object {} has no active action".format(context.active_object.name))
resource = self.export_animation(context, anim_data.action)