Show More
@@ -439,7 +439,10 b' class ui(object):' | |||
|
439 | 439 | |
|
440 | 440 | def getpass(self, prompt=None, default=None): |
|
441 | 441 | if not self.interactive: return default |
|
442 | return getpass.getpass(prompt or _('password: ')) | |
|
442 | try: | |
|
443 | return getpass.getpass(prompt or _('password: ')) | |
|
444 | except EOFError: | |
|
445 | raise util.Abort(_('response expected')) | |
|
443 | 446 | def status(self, *msg): |
|
444 | 447 | if not self.quiet: self.write(*msg) |
|
445 | 448 | def warn(self, *msg): |
General Comments 0
You need to be logged in to leave comments.
Login now