Skip to content

Commit

Permalink
修复host末尾有/符号会报错的小bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyaowong committed Mar 10, 2021
1 parent cd31a5a commit e43323a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion botoy/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import httpx

from botoy import json, macro
from botoy import macro
from botoy.config import Config
from botoy.log import logger

Expand Down
1 change: 1 addition & 0 deletions botoy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def load_file(self):
self.host = 'http://127.0.0.1'
else:
self.host = check_schema(host)
self.host = self.host.strip('/') # 防止手动设置host,末尾是/符号,而报错

# port
if self.port is None:
Expand Down

0 comments on commit e43323a

Please sign in to comment.