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: Yu0610 <612410030@alum.ccu.edu.tw>
  • Loading branch information
elitap authored and Yu0610 committed Apr 11, 2024
1 parent 71bed6c commit 13797d6
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 13797d6

Please sign in to comment.