Skip to content

Commit b6e183e

Browse files
committed
Fix failing test
1 parent b3841d4 commit b6e183e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd2/cmd2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@
159159
class NoConsoleScreenBufferError(Exception): # type: ignore[no-redef]
160160
"""Dummy exception to use when prompt_toolkit.output.win32.NoConsoleScreenBufferError is not available."""
161161

162+
def __init__(self, msg: str = '') -> None:
163+
"""Initialize NoConsoleScreenBufferError custom exception instance."""
164+
super().__init__(msg)
165+
162166

163167
from .pt_utils import (
164168
Cmd2Completer,

0 commit comments

Comments
 (0)