diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-02-21 11:46:09 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-02-21 11:46:09 -0500 |
commit | ccb50f33b5cdff1f354bdc24618a6c665f3ab68a (patch) | |
tree | e918fab3b62b78929b298492187aa26c70f73b6c /cmd2/transcript.py | |
parent | 9c60ac6f3169f9df37e6c5166844fb9cf5f6766d (diff) | |
download | cmd2-git-ccb50f33b5cdff1f354bdc24618a6c665f3ab68a.tar.gz |
Start making small changes to fix mypy warnings
Diffstat (limited to 'cmd2/transcript.py')
-rw-r--r-- | cmd2/transcript.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd2/transcript.py b/cmd2/transcript.py index 68fb7be0..5cd59ae8 100644 --- a/cmd2/transcript.py +++ b/cmd2/transcript.py @@ -60,6 +60,9 @@ class Cmd2TestCase(unittest.TestCase): tfile.close() def _test_transcript(self, fname: str, transcript): + if self.cmdapp is None: + return + line_num = 0 finished = False line = ansi.strip_style(next(transcript)) |