Re: [Tutor] Uncertain about exceptions

2005-07-06 Thread Kent Johnson
Matej Cepl wrote: > Now, my question is concerned with the use of exception in SoupReader.suck. > The idea is that when the page is not available for download, whole object > goes up in flames, the rest of SoapReader.__init__ is skipped over, and the > exception is then caught in reprocess.py cycle

[Tutor] Uncertain about exceptions

2005-07-06 Thread Matej Cepl
Hi, I have here two Python modules (see attached), where newsparser.py defines (among other things) an object SoupReader and an exception PageNotAvailable. This object (or its children) is then periodically created in a loop in reprocess.py. Now, my question is concerned with the use of exception