Skip to content

Commit f14dee6

Browse files
committed
[DATALAD RUNCMD] RF: minor - use Error not Exception suffix for custom exceptions
=== Do not change lines below === { "chain": [], "cmd": "git-sedi BIDSException BIDSError", "exit": 0, "inputs": [], "outputs": [ "heudiconv/*py" ], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent c8c046b commit f14dee6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

heudiconv/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
lgr = logging.getLogger(__name__)
2727

2828

29-
class BIDSException(Exception):
29+
class BIDSError(Exception):
3030
pass
3131

3232

heudiconv/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
save_scans_key,
2525
tuneup_bids_json_files,
2626
add_participant_record,
27-
BIDSException
27+
BIDSError
2828
)
2929
from .dicoms import (
3030
group_dicoms_into_seqinfos,
@@ -529,7 +529,7 @@ def save_converted_files(res, item_dicoms, bids, outtype, prefix, outname_bids,
529529

530530
# If "_rec-" is specified, prepend the 'mag_or_phase' value.
531531
if ('_rec-' in this_prefix_basename):
532-
raise BIDSException(
532+
raise BIDSError(
533533
"Reconstruction label for multi-echo single-band"
534534
" reference images will be automatically set, remove"
535535
" from heuristic"

0 commit comments

Comments
 (0)