Skip to content

Commit

Permalink
Merge pull request #53 from veprbl/patch-1
Browse files Browse the repository at this point in the history
Fix running tests in environment where opening /dev/tty gives ENXIO
  • Loading branch information
amjith committed Feb 1, 2019
2 parents f51136b + 8a30b71 commit 61d4082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litecli/main.py
Expand Up @@ -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 (
Expand Down

0 comments on commit 61d4082

Please sign in to comment.