]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't use a string exception since it's deprecated
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 21 Oct 2005 06:00:58 +0000 (06:00 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 21 Oct 2005 06:00:58 +0000 (06:00 +0000)
Lib/logging/__init__.py

index 24799fb1bbbb6df23d7b0ec8d8f50f07fa837b98..b06935e8e6f8d35926fc161bb06909309676eb8f 100644 (file)
@@ -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