Skip to content

Commit

Permalink
fix useless error msg in nnunetv2runner (Project-MONAI#7217)
Browse files Browse the repository at this point in the history
Fixes # fix useless error msg in nnunetv2runner

### Description

### Types of changes
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).

Signed-off-by: elitap <elias.tappeiner@gmx.at>
Signed-off-by: Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>
  • Loading branch information
elitap authored and juampatronics committed Mar 25, 2024
1 parent 674812f commit c43f8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monai/apps/nnunet/nnunetv2_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ def convert_dataset(self):
num_input_channels=num_input_channels,
output_datafolder=raw_data_foldername,
)
except BaseException:
logger.warning("Input config may be incorrect. Detail info: error/exception message is:\n {err}")
except BaseException as err:
logger.warning(f"Input config may be incorrect. Detail info: error/exception message is:\n {err}")
return

def convert_msd_dataset(self, data_dir: str, overwrite_id: str | None = None, n_proc: int = -1) -> None:
Expand Down

0 comments on commit c43f8ca

Please sign in to comment.