Skip to content

Commit a8de9e6

Browse files
Merge branch 's-t-e-v-e-n-k-support-click-8.2' into issues2223
2 parents 3947b27 + d92d20a commit a8de9e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SoftLayer/CLI/formatting.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ def no_going_back(confirmation):
260260

261261
prompt = f"This action cannot be undone! Type '{confirmation}' or press Enter to abort"
262262

263-
ans = click.prompt(prompt, default='', show_default=False)
263+
try:
264+
ans = click.prompt(prompt, default='', show_default=False)
265+
except click.exceptions.Abort:
266+
return False
264267
if ans.lower() == str(confirmation).lower():
265268
return True
266269

0 commit comments

Comments
 (0)