Skip to content

Commit 8bed244

Browse files
committed
Syle-based refactor
1 parent 1824a4e commit 8bed244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3563,8 +3563,8 @@ def set_window_title(self, title: str) -> None: # pragma: no cover
35633563
except AttributeError:
35643564
# Debugging in Pycharm has issues with setting terminal title
35653565
pass
3566-
3567-
self.terminal_lock.release()
3566+
finally:
3567+
self.terminal_lock.release()
35683568

35693569
else:
35703570
raise RuntimeError("another thread holds terminal_lock")

0 commit comments

Comments
 (0)