summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2019-01-31 18:57:04 -0800
committerGitHub <noreply@github.com>2019-01-31 18:57:04 -0800
commit61d408272db7f7229f05dcaa4c54d28978000ec3 (patch)
tree85c22f6096fca5dd17f295b0a10aeebea1e03435
parentf51136b24234d552574d42583f3c30a086ff085c (diff)
parent8a30b71bb39ee16f1961d63685610bc8fd67b13c (diff)
Merge pull request #53 from veprbl/patch-1
Fix running tests in environment where opening /dev/tty gives ENXIO
-rwxr-xr-xlitecli/main.py2
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 (