diff options
author | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-13 13:38:07 -0400 |
---|---|---|
committer | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-13 13:38:07 -0400 |
commit | 6da68012eeff7ad47f8444a892955e44ab248c57 (patch) | |
tree | 099d0437d71960f71346bd4b16e3264ee4aeee86 /examples/python_scripting.py | |
parent | 4dd457ab70eeac263ef3ad8a6642dbf4a39540b2 (diff) | |
download | cmd2-git-6da68012eeff7ad47f8444a892955e44ab248c57.tar.gz |
Ruggedized do_py by adding try/except/finally
The finally block ensures that the self._in_py state variable always gets reset to "False" before exiting the function, even if an exception occurs.
Diffstat (limited to 'examples/python_scripting.py')
0 files changed, 0 insertions, 0 deletions