This commit is contained in:
老兄
2023-09-09 23:34:07 +08:00
committed by GitHub
parent 0ee8fcef48
commit a9dca720b5
+1 -1
View File
@@ -30,7 +30,7 @@ logger = telebot.logger.setLevel(logging.INFO)
bots = {} bots = {}
# check if credentials exist, create if not # check if credentials exist, create if not
if not os.path.isfile("config.conf"): if not os.path.isfile("config.conf") and "DOCKER_CONTAINER" not in os.environ:
if os.path.isfile("credentials.py"): if os.path.isfile("credentials.py"):
logging.info("转移旧的配置文件") logging.info("转移旧的配置文件")
try: try: