mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
cache: Treat EOFError as a negative _confirm answer
This commit is contained in:
parent
bbc8886bfe
commit
848666e7cb
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue