Skip to content

Commit d831b4f

Browse files
author
Lucas Haupt
committed
Minor fix: Don't raise e, just use raise instead (no var needed here)
1 parent b2b437a commit d831b4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_monitor/pytest_monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def wrapped_function():
201201
pyfuncitem.obj(**testargs)
202202
except Exception:
203203
raise
204-
except BaseException as e:
205-
raise e
204+
except BaseException:
205+
raise
206206

207207
def prof():
208208
m = memory_profiler.memory_usage((wrapped_function, ()), max_iterations=1, max_usage=True, retval=True)

0 commit comments

Comments
 (0)