changeset 78759 | 461e924cc825 |
parent 78112 | 10487f6571bc |
--- a/src/Pure/morphism.ML Wed Oct 11 11:37:18 2023 +0200 +++ b/src/Pure/morphism.ML Wed Oct 11 11:59:24 2023 +0200 @@ -83,9 +83,9 @@ exception MORPHISM of string * exn; -fun app context (name, f) x = f context x - handle exn => - if Exn.is_interrupt exn then Exn.reraise exn else raise MORPHISM (name, exn); +fun app context (name, f) x = + Isabelle_Thread.try_catch (fn () => f context x) + (fn exn => raise MORPHISM (name, exn)); (* optional context *)