From 3435766132d3d434622eecae5fb80f5db33bcab4 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 5 Sep 2021 03:05:26 -0400 Subject: Handled formatting issues in documentation. --- lux-python/source/program.lux | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lux-python/source') diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index 553b07499..34f527aed 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -280,7 +280,14 @@ (..read output)))) execute! (: (-> (_.Statement Any) (Try Any)) (function (execute! input) - (org/python/util/PythonInterpreter::exec (_.code input) interpreter)))] + (case (org/python/util/PythonInterpreter::exec (_.code input) interpreter) + (#try.Failure error) + (if (text.contains? "maximum recursion depth exceeded" error) + (execute! input) + (#try.Failure error)) + + output + output)))] (: (Host (_.Expression Any) (_.Statement Any)) (implementation (def: evaluate! evaluate!) @@ -370,7 +377,7 @@ {keywords [java/lang/String]}) org/python/core/PyObject (try.trusted - (case (array.list inputs) + (case (array.list #.None inputs) (^ (list)) (\ try.monad in (host_phase (list) phase)) -- cgit v1.2.3