diff --git a/io_scene_psk_psa/psa/export/operators.py b/io_scene_psk_psa/psa/export/operators.py index e7a5f86..6ad4d0f 100644 --- a/io_scene_psk_psa/psa/export/operators.py +++ b/io_scene_psk_psa/psa/export/operators.py @@ -289,7 +289,12 @@ class PSA_OT_export_collection(Operator, ExportHelper, PsaExportMixin): if collection is None: self.report({'ERROR'}, 'No collection found for export') return {'CANCELLED'} - import_objects = get_psk_input_objects_for_collection(collection) + + try: + import_objects = get_psk_input_objects_for_collection(collection) + except RuntimeError as e: + self.report({'ERROR_INVALID_CONTEXT'}, str(e)) + return {'CANCELLED'} options = create_psa_export_options(context, import_objects.armature_objects, self)