Skip to content

Commit

Permalink
优化选项选择
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Feb 23, 2022
1 parent 7faefcc commit 17a9677
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v2ray_util/util_core/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def select(self):
else:
choice = input(self.msg)

if not choice:
print("use {}".format(self.collection[0]))
return self.collection[0]

if not choice.isnumeric():
raise RuntimeError(_('input error, please check is number'))

Expand Down

0 comments on commit 17a9677

Please sign in to comment.