• Matias Guijarro's avatar
    shell/cli/repl.py: suppress exception context when raising exception in _execute_task · e5208ad7
    Matias Guijarro authored
    ptpython tries to execute code with 'eval', if it fails because of SyntaxError it
    executes the code with 'exec'. The problem is that the SyntaxError exception
    becomes part of the context of any further exception that can be raised.
    So, the traceback displays a scary, unhelpful traceback with SyntaxError.
    This change removes this problem, by clearing the context.
    e5208ad7
Name
Last commit
Last update
bin Loading commit data...
bliss Loading commit data...
doc Loading commit data...
examples Loading commit data...
extensions Loading commit data...
scripts Loading commit data...
spec Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
.pre-commit-config.yaml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
pre-commit.sh Loading commit data...
requirements-conda.txt Loading commit data...
requirements-dev.txt Loading commit data...
requirements-doc-conda.txt Loading commit data...
requirements-doc.txt Loading commit data...
requirements-test-conda.txt Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...