Skip to content

Commit 4542e9f

Browse files
STY: Apply ruff/flake8-raise rule RSE102
RSE102 Unnecessary parentheses on raised exception
1 parent e03ab6f commit 4542e9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nipype/pipeline/plugins/tests/test_sgelike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def crasher():
10-
raise ValueError()
10+
raise ValueError
1111

1212

1313
def submit_batchtask(self, scriptfile, node):

nipype/utils/tests/test_filemanip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def __getstate__(self):
598598

599599
class PickledBreaker:
600600
def __setstate__(self, d):
601-
raise Exception()
601+
raise Exception
602602

603603

604604
def test_versioned_pklization(tmpdir):

0 commit comments

Comments
 (0)