Skip to content

Commit fa87cb8

Browse files
Apply ruff/flake8-raise rules (RSE)
RSE102 Unnecessary parentheses on raised exception
1 parent b157911 commit fa87cb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,14 @@ def run(self):
333333
build_ext.run(self)
334334
except PlatformError as e:
335335
error(e)
336-
raise BuildFailed() from e
336+
raise BuildFailed from e
337337

338338
def build_extension(self, ext):
339339
try:
340340
build_ext.build_extension(self, ext)
341341
except ext_errors as e:
342342
error(e)
343-
raise BuildFailed() from e
343+
raise BuildFailed from e
344344

345345

346346
class Sclean(clean):

0 commit comments

Comments
 (0)