From e43323a9483957376817b334c92557aefe0b733e Mon Sep 17 00:00:00 2001 From: wongxy Date: Wed, 10 Mar 2021 21:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhost=E6=9C=AB=E5=B0=BE?= =?UTF-8?q?=E6=9C=89/=E7=AC=A6=E5=8F=B7=E4=BC=9A=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- botoy/action.py | 2 +- botoy/config.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/botoy/action.py b/botoy/action.py index 611053c2..b2452c18 100644 --- a/botoy/action.py +++ b/botoy/action.py @@ -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 diff --git a/botoy/config.py b/botoy/config.py index f7a6c7e1..6bda8df3 100644 --- a/botoy/config.py +++ b/botoy/config.py @@ -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: