diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2019-01-31 18:57:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-31 18:57:04 -0800 |
commit | 61d408272db7f7229f05dcaa4c54d28978000ec3 (patch) | |
tree | 85c22f6096fca5dd17f295b0a10aeebea1e03435 | |
parent | f51136b24234d552574d42583f3c30a086ff085c (diff) | |
parent | 8a30b71bb39ee16f1961d63685610bc8fd67b13c (diff) |
Merge pull request #53 from veprbl/patch-1
Fix running tests in environment where opening /dev/tty gives ENXIO
-rwxr-xr-x | litecli/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/litecli/main.py b/litecli/main.py index e034688..909ebf3 100755 --- a/litecli/main.py +++ b/litecli/main.py @@ -923,7 +923,7 @@ def cli( try: sys.stdin = open("/dev/tty") - except FileNotFoundError: + except (FileNotFoundError, OSError): litecli.logger.warning("Unable to open TTY as stdin.") if ( |