From bcd51f292b5a38ae241ece0b0e75e45b2dbbdf47 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Thu, 14 Jan 2021 19:04:50 +0100 Subject: [PATCH] Windows file names can't have colons in them. --- TwitchChannelPointsMiner/TwitchChannelPointsMiner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py b/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py index ac24170..7d81bfe 100644 --- a/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py +++ b/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py @@ -71,7 +71,7 @@ class TwitchChannelPointsMiner: Path(logs_path).mkdir(parents=True, exist_ok=True) self.logs_file = os.path.join( logs_path, - f"{username}.{datetime.now().strftime('%d-%m-%Y-%H:%M:%S')}.log", + f"{username}.{datetime.now().strftime('%d%m%Y-%H%M%S')}.log", ) file_handler = logging.FileHandler(self.logs_file) file_handler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)s - %(name)s - [%(funcName)s]: %(message)s"))