[Zope] 'popen' calls not happening?

seb bacon seb@jamkit.com
Fri, 7 Sep 2001 13:16:09 +0100


* Jean Jordaan <jean@upfrontsystems.co.za> [010907 12:24]:
> Hi Seb
> 
> > Is that all your 'except' clause does?  Because if so, you're 
> > not going to get any tracebacks at all, because the expect is 
> > catching them all and doing nothing with them.  Try removing 
> > the try..except. 
> 
> If there is a traceback, won't it be included in the 'errors' list 
> by 'str(exception[2])' ? 

yes, but where are you returning the value of 'errors'?

> >         exception = sys.exc_info()
> >         errors.append( "Could not execute 'passfeko'" \
> >                      + '\n --' + str(exception[0]) \
> >                      + '\n --' + str(exception[1]) \
> >                      + '\n --' + str(exception[2]) \
> >                      ) # TODO: display the traceback.
> 
> Since no exception is being raised, however, this doesn't really
> touch on the issue of the popen call not working .. 

No exception is being raised because you are catching the exception.
If you either (a) return the value of errors, or (b) remove the
try..except clause, then you'll know if an exception is being raised
or not.

seb