Skip to content

Commit

Permalink
Remove except clause
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Dec 2, 2023
1 parent efaeb21 commit 50ee2c6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/activate-global-python-argcomplete
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,8 @@ def install_to_destination(dest):


def get_consent():
try:
if args.yes is True:
return True
except NameError:
pass
if args.yes is True:
return True
while True:
res = input("OK to proceed? [y/n] ")
if res.lower() not in {"y", "n", "yes", "no"}:
Expand Down

0 comments on commit 50ee2c6

Please sign in to comment.