From: Neal Norwitz Date: Fri, 21 Oct 2005 06:00:24 +0000 (+0000) Subject: Don't use a string exception since it's deprecated X-Git-Tag: v2.5a0~1267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e8659b963ca6076a5d643da67567af7ae3bdcc6;p=thirdparty%2FPython%2Fcpython.git Don't use a string exception since it's deprecated --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 24799fb1bbbb..b06935e8e6f8 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -64,7 +64,7 @@ _srcfile = os.path.normcase(_srcfile) 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