summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index c000fb80..02803b06 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3563,8 +3563,8 @@ a..b, a:b, a:, ..b items by indices (inclusive)
except AttributeError:
# Debugging in Pycharm has issues with setting terminal title
pass
-
- self.terminal_lock.release()
+ finally:
+ self.terminal_lock.release()
else:
raise RuntimeError("another thread holds terminal_lock")