Skip to content

Commit 05b0bb0

Browse files
committed
1 parent 1fe47cc commit 05b0bb0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def print_warn(data,end="\n"):
832832

833833
@staticmethod
834834
def print_text(values="",end="\n",flush= False):
835-
print(values,end=end,flush=flush)
835+
print(values,end=str(end),flush=flush) # force to string
836836
Tracking.put_log(values,end=end)
837837

838838
@staticmethod
@@ -1070,7 +1070,7 @@ def __choose(data,tips,array):
10701070
while True:
10711071
if choose_item:
10721072
choose = str(choose_item['choose'])
1073-
PrintUtils.print_text(tr.tr("为您从配置文件找到默认选项:"),choose_item)
1073+
PrintUtils.print_text(tr.tr("为您从配置文件找到默认选项:")+str(choose_item))
10741074
else:
10751075
choose = input(tr.tr("请输入[]内的数字以选择:"))
10761076
choose_item = None
@@ -1121,7 +1121,7 @@ def __choose(data,tips,array,categories):
11211121
while True:
11221122
if choose_item:
11231123
choose_id = str(choose_item['choose'])
1124-
print(tr.tr("为您从配置文件找到默认选项:"),choose_item)
1124+
print(tr.tr("为您从配置文件找到默认选项:")+str(choose_item))
11251125
else:
11261126
choose_id = input(tr.tr("请输入[]内的数字以选择:"))
11271127
choose_item = None

0 commit comments

Comments
 (0)