diff options
| author | Ben Winston | 2023-02-28 21:01:08 -0500 |
|---|---|---|
| committer | Ben Winston | 2023-02-28 21:01:08 -0500 |
| commit | 97077906455ecd86178611b4dc93f6775226f445 (patch) | |
| tree | 8b4551b81a968741e276f94c05657a3a542f2613 | |
| parent | 84539566cc9cc6113a4e7b817262305b72669893 (diff) | |
bugfix: spit out a nicer message if curses can't draw
| -rwxr-xr-x | roku_tui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roku_tui.py b/roku_tui.py index b290b37..a3a3143 100755 --- a/roku_tui.py +++ b/roku_tui.py @@ -246,7 +246,10 @@ def startup(): if not config_file.exists(): init_run(config_file) config = RokuConfig(config_file) - curses.wrapper(main, config) + try: + curses.wrapper(main, config) + except curses.error as err: + print("Error with display — is your console window too small?") if __name__ == '__main__': startup() |
