Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎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)

AltStyle によって変換されたページ (->オリジナル) /