[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: David James <james82_at_gmail.com>
Date: Fri, 19 Sep 2008 11:28:53 -0700

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()

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-19 20:29:07 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.