mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-09 08:46:07 +01:00
Fix EOFError
This commit is contained in:
parent
9c4a1e1ebd
commit
bf05534785
1 changed files with 5 additions and 1 deletions
|
@ -132,7 +132,11 @@ class Msg(object):
|
||||||
if self.meta.default_answer in ["y", "Y"]:
|
if self.meta.default_answer in ["y", "Y"]:
|
||||||
answer = self.meta.default_answer
|
answer = self.meta.default_answer
|
||||||
else:
|
else:
|
||||||
answer = raw_input("Would you like to continue [y/N]? ")
|
try:
|
||||||
|
answer = raw_input("Would you like to continue [y/N]? ")
|
||||||
|
except (KeyboardInterrupt, EOFError):
|
||||||
|
print("")
|
||||||
|
sys.exit(0)
|
||||||
return answer
|
return answer
|
||||||
|
|
||||||
def reference(self, install, upgrade):
|
def reference(self, install, upgrade):
|
||||||
|
|
Loading…
Add table
Reference in a new issue