From 64f7c83cc501462fc99a53036b3c2530a88cbf48 Mon Sep 17 00:00:00 2001 From: Someone Date: Thu, 6 Jan 2022 22:27:21 +0100 Subject: [PATCH] core/MMBot.py --- core/MMBot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/MMBot.py b/core/MMBot.py index 0216866..f85f76a 100644 --- a/core/MMBot.py +++ b/core/MMBot.py @@ -10,7 +10,6 @@ import pprint import signal import sys import threading -import time import traceback import urllib @@ -421,11 +420,11 @@ class MMBot(): raise Exception("respond(): Secondary response attempt without response url.") - logger.info("respond(): Secondary response. Using responseURL: "+self.responseURL) + logger.info("respond(): Secondary response. Using responseURL: %s", self.responseURL) req = Request(self.responseURL, data=bytes(json.dumps(data), "utf8"), method='POST') req.add_header("Content-Type", "application/json") conn = urlopen(req, timeout=3) - logger.info("respond(): Secondary response send. Status: "+str(conn.status)) + logger.info("respond(): Secondary response send. Status: %s", conn.status) -- 2.43.0