From 69221b7c0b450202f0940dfb8459b2d65169fd5f Mon Sep 17 00:00:00 2001 From: apaz Date: Thu, 21 Nov 2024 17:01:14 +0000 Subject: [PATCH] Remove potentially unused exception name. --- thunder/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thunder/__init__.py b/thunder/__init__.py index a46986379..c5eb46819 100644 --- a/thunder/__init__.py +++ b/thunder/__init__.py @@ -849,9 +849,8 @@ def internal_to_thunder(co): # Re-raise the exception without retaining it in this stack frame to avoid leaking tensors. try: raise exc - except Exception as e: + except Exception: del exc - del e raise # re-raises current exception return _thunder_unwrap_inner_exception