Skip to content

Commit 2aa4a3e

Browse files
committed
Fix exception name
1 parent 01bc47d commit 2aa4a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pavilion/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def add_config_dirs(pav_cfg, setup_working_dirs: bool) -> OrderedDict:
703703
try:
704704
if working_dir.is_dir():
705705
working_dir.touch()
706-
except (PermissionError, NotADirectoryError):
706+
except (PermissionError, IsADirectoryError):
707707
pav_cfg.warnings.append(
708708
"Could not write to working directory '{}' for config '{}'"
709709
.format(working_dir, config_dir))

0 commit comments

Comments
 (0)