Skip to content

Commit 3ed88fc

Browse files
committed
MNT: Remove ancient warning against running cli.run as a script; harder mistake to make in Py3
1 parent 113709d commit 3ed88fc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

fmriprep/cli/run.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
32
# vi: set ft=python sts=4 ts=4 sw=4 et:
43
#
@@ -235,10 +234,3 @@ def main():
235234
sentry_sdk.capture_message(msg, level="error")
236235

237236
sys.exit(int((errno + len(failed_reports)) > 0))
238-
239-
240-
if __name__ == "__main__":
241-
raise RuntimeError(
242-
"fmriprep/cli/run.py should not be run directly;\n"
243-
"Please `pip install` fmriprep and use the `fmriprep` command"
244-
)

0 commit comments

Comments
 (0)