diff Lib/logging/__init__.py @ 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 cda87357185f
children 1661e73c07ab
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