Update from proforma to proformaxml

This commit is contained in:
Sebastian Serth
2023-08-23 00:10:11 +02:00
committed by Sebastian Serth
parent 41e75ca385
commit 245c3dba8c
12 changed files with 45 additions and 56 deletions

View File

@ -166,9 +166,9 @@ class ExercisesController < ApplicationController
exercise.save!
render json: {}, status: :created
end
rescue Proforma::ExerciseNotOwned
rescue ProformaXML::ExerciseNotOwned
render json: {}, status: :unauthorized
rescue Proforma::ProformaError
rescue ProformaXML::ProformaError
render json: t('exercises.import_codeharbor.import_errors.invalid'), status: :bad_request
rescue StandardError => e
Sentry.capture_exception(e)