Skip to content

Commit 872fa61

Browse files
committed
cli/add_from_fs(fix[error-handling]): Use early return instead of raise in exception handler
why: Match established error handling patterns in the codebase what: - Change raise to return in save_config_yaml exception handler - Maintains consistency with other modules' error handling approach
1 parent e259628 commit 872fa61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vcspull/cli/add_from_fs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def add_from_filesystem(
324324
import traceback
325325

326326
traceback.print_exc()
327-
raise
327+
return
328328
else:
329329
log.info(
330330
f"{Fore.GREEN}{Style.RESET_ALL} No changes made to the configuration.",

0 commit comments

Comments
 (0)