to raise a exception isn't a bug

Markus Schönhaber ubuntu-users at list-post.mks-mail.de
Sun Jun 21 00:41:26 UTC 2009


Derek Broughton:

> Markus Schönhaber wrote:
> 
>> Dotan Cohen:
>>
>>> https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/335897
>> I'm not sure what you're hinting at. Raising an exception really isn't a
>> bug but a way to cope with an error condition that can't be handled
>> otherwise.
> 
> "Raising" an exception isn't a bug, but failing to _handle_ said exception 
> has to be.  No user application should be exiting with exceptions.

What's your point?
python-apt isn't a user application. Therefore closing said bug wrt
python-apt as invalid is perfectly reasonable.

>> The above bug report affects two packages - python-apt and
>> install-package. Somewhere in python-apt the exception may be raised.
>> But that's not the problem but rather that install-package wasn't able
>> to handle this exception gracefully. And for the latter a fix is released.
>> To me, everything seems to be well and sensible. Or do I miss something?
>  
> Everything seems well if a fix has been released.

-- 
Regards
  mks




More information about the ubuntu-users mailing list