[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r33191 - trunk/build/generator/util

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta_at_gmail.com>
Date: Sat, 20 Sep 2008 21:23:14 +0200

2008-09-19 20:28:53 David James napisaƂ(a):
> On Fri, Sep 19, 2008 at 9:29 AM, <arfrever_at_tigris.org> wrote:
> > + try:
> > + # Python >=2.4
> > + import subprocess
> > + (output, empty_stderr) = subprocess.Popen(cmd, stdout=subprocess.PIPE, \
> > + stderr=subprocess.STDOUT).communicate()
> ...
> > + except OSError:
> > + # Command probably not found
> > + output = ""
>
> HI Arfrever,
>
> If an OSError occurred, should we maybe print the stack trace to
> stderr to help with debugging? You can do this with the following
> code:
> import traceback
> traceback.print_exc()

danielsh changed this code in r33192, so OSError exceptions are no longer
ignored.

-- 
Arfrever Frehtes Taifersar Arahesis

Received on 2008-09-20 21:26:00 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.