Skip to content
Snippets Groups Projects
Commit 95b4eae4 authored by Phil Dawson's avatar Phil Dawson Committed by Jim MacArthur
Browse files

app.py: Handle exception thrown when recursion limit is exceeded

Because the RecursionError exception was introduced in Python 3.5, until we
drop support for for Python 3.4, we must use RuntimeError.
parent a0ad985f
No related branches found
No related tags found
Loading
Pipeline #26479643 passed
......@@ -270,6 +270,10 @@ class App():
# Exit with the error
self._error_exit(e)
except RecursionError:
click.echo("RecursionError: Depency depth is too large. Maximum recursion depth exceeded.",
err=True)
sys.exit(-1)
else:
# No exceptions occurred, print session time and summary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment