Skip to content

Commit

Permalink
Errors emitted from PskExporter::export will not be displayed more gr…
Browse files Browse the repository at this point in the history
…acefully.
  • Loading branch information
cmbasnett committed Jan 23, 2022
1 parent 13c194e commit ea6905e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io_scene_psk_psa/psk/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def execute(self, context):
options.bone_group_indices = [x.index for x in property_group.bone_group_list if x.is_selected]
try:
psk = builder.build(context, options)
exporter = PskExporter(psk)
exporter.export(self.filepath)
except RuntimeError as e:
self.report({'ERROR_INVALID_CONTEXT'}, str(e))
return {'CANCELLED'}
exporter = PskExporter(psk)
exporter.export(self.filepath)
return {'FINISHED'}


Expand Down

0 comments on commit ea6905e

Please sign in to comment.