A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-September/049148.html below:

[Python-Dev] Proposing a sys.special_exceptions tuple

[Python-Dev] Proposing a sys.special_exceptions tuple [Python-Dev] Proposing a sys.special_exceptions tupleLalo Martins lalo at laranja.org
Thu Sep 30 17:52:48 CEST 2004
On Thu, Sep 30, 2004 at 10:19:22AM -0400, Phillip J. Eby wrote:
> 
> Also, maybe in 2.5 we could begin warning about bare excepts that aren't 
> preceded by non-bare exceptions.

try:
  foo()
except:
  print_or_log_exception_in_a_way_that_is_meaningful()
  raise

doesn't seem to be incorrect to me.  For example, if the program
is a daemon, I want the exception logged somewhere so that I can
see it later, because I won't be watching stderr.

[]s,
                                               |alo
                                               +----
--
            Those who trade freedom for security
               lose both and deserve neither.
--
http://www.laranja.org/                mailto:lalo at laranja.org
 pgp key: http://garfield.laranja.org/~lalo/gpgkey-signed.asc

GNU: never give up freedom                 http://www.gnu.org/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4