Skip to content

Commit

Permalink
fix try
Browse files Browse the repository at this point in the history
  • Loading branch information
darrensiegel committed Oct 7, 2024
1 parent 4c052e1 commit b0b0368
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/oli_web/live/delivery/student/review_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,14 @@ defmodule OliWeb.Delivery.Student.ReviewLive do
socket
|> put_flash(:error, "You are not allowed to review this attempt.")
|> redirect(to: Utils.learn_live_path(section.slug))}

rescue
e in RuntimeError ->
Logger.error("ReviewLive mount, error: #{inspect(e)}")
{:ok, socket}
end

rescue
e in RuntimeError ->
Logger.error("ReviewLive mount, error: #{inspect(e)}")
{:ok, socket}
end

else
{:ok, assign(socket, loaded: false)}
end
Expand Down

0 comments on commit b0b0368

Please sign in to comment.