diff --git a/attic/cache.py b/attic/cache.py index edebb2bf2..3e0e50e08 100644 --- a/attic/cache.py +++ b/attic/cache.py @@ -70,7 +70,10 @@ class Cache(object): return True if sys.stdin.isatty(): return False - answer = input('Do you want to continue? [yN] ') + try: + answer = input('Do you want to continue? [yN] ') + except EOFError: + return False return answer and answer in 'Yy' def create(self):