[Yum-devel] EOFError on user cancel

Thomas Springer th.springer at gmx.net
Thu Feb 1 22:31:00 UTC 2007


Am Donnerstag, den 01.02.2007, 00:34 -0500 schrieb seth vidal:
> On Wed, 2007-01-24 at 16:00 +0100, Thomas Springer wrote:
> > Got that when hitting Ctrl-D('oh) instead of 'N'.
[...]
> >   File "/usr/share/yum-cli/output.py", line 117, in userconfirm
> >     choice = raw_input('Is this ok [y/N]: ')
> > EOFError
> > 
> 
> 
> > Should this be fixed?: y
> cute. :)
> 
> 
> we can catch EOFError in the exception and have it exit more gracefully
> but do you have suggestions on what more-correct behavior should be?
> 
> -sv
> 

Maybe exiting yum is not all it's cracked up to be.
You could just catch the exception and prompt the user for input again.
What do you think?


Thomas




More information about the Yum-devel mailing list