Skip to content

Commit 1f5615e

Browse files
committed
flake8 fixes
1 parent 9ada5d9 commit 1f5615e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cli_ui/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ def select_choices(
580580
if not answer:
581581
return None
582582
try:
583-
import re
584583

585584
index = [int(item) for item in re.split(r"; |, |\s |;|,|\s", answer)]
586585
index = [x - 1 for x in index] # convert to true index
@@ -591,9 +590,7 @@ def select_choices(
591590

592591
try:
593592
res = itemgetter(*index)(choices)
594-
# res = choices[index - 1]
595-
keep_asking = False
596-
except:
593+
except Exception:
597594
info("Please enter valid selection number(s)")
598595
continue
599596

0 commit comments

Comments
 (0)