Hans Meine wrote: > Am Donnerstag, 22. März 2007 15:41:29 schrieb Dirk Meyer: >> thing that could happen inside this block. What about: >> | except (KeyboardInterrupt, SystemExit), e: >> | raise e > > What is the rationale for the try..except then? > Cutting off the traceback? (That's the only effect I can see right now.)
we want to catch everything else except these two. The only way is to
catch these two and catch everything else later. The complete code is:
try:
...
except (KeyboardInterrupt, SystemExit):
this is ok and should result in exit
except Exception, e:
this is an error we want to catch
Dischi
--
PEOPLE'S WHOLE LIVES *DO* PASS IN FRONT OF THEIR EYES BEFORE THEY DIE. THE
PROCESS IS CALLED 'LIVING'.
-- (Terry Pratchett, The Last Continent)
pgpBlabLhpXqU.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
