summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
authorTodd Leonhardt <tleonhardt@gmail.com>2017-06-13 13:38:07 -0400
committerTodd Leonhardt <tleonhardt@gmail.com>2017-06-13 13:38:07 -0400
commit6da68012eeff7ad47f8444a892955e44ab248c57 (patch)
tree099d0437d71960f71346bd4b16e3264ee4aeee86 /examples/python_scripting.py
parent4dd457ab70eeac263ef3ad8a6642dbf4a39540b2 (diff)
downloadcmd2-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