changeset 35749:17828a00a454 legacy-trunk

Don't use a string exception since it's deprecated
author Neal Norwitz <nnorwitz@gmail.com>
date Fri, 21 Oct 2005 06:00:24 +0000
parents 25ba2f3313c9
children e56144704808
files Lib/logging/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/logging/__init__.py	Fri Oct 21 05:15:07 2005 +0000
+++ b/Lib/logging/__init__.py	Fri Oct 21 06:00:24 2005 +0000
@@ -64,7 +64,7 @@
 def currentframe():
     """Return the frame object for the caller's stack frame."""
     try:
-        raise 'catch me'
+        raise Exception
     except:
         return sys.exc_traceback.tb_frame.f_back