Re: Coding Style: exiting python programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> > Thanks for the tip. Perhaps you should add that SystemExit is a
> > subclass of BaseException and not Exception starting Python 2.5
> > [1].
> 
> Right. This is why we went from a bare 'except' to 'except Exception'
> in
> much of anaconda a couple of years ago -- to not catch SystemExit.
> 

Which is also wrong, because SyntaxError is still inherited from Exception..

Martin

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux