From 2d42453d45f22bc5555588078b6098bcb7c29b67 Mon Sep 17 00:00:00 2001 From: Oloturia Date: Fri, 15 Apr 2022 13:02:49 +0200 Subject: [PATCH] fixed a bug that caused crashes on Telegram Bot --- randstrip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randstrip.py b/randstrip.py index 33ad0ca..d27a991 100755 --- a/randstrip.py +++ b/randstrip.py @@ -167,7 +167,7 @@ def readConfig(profile=False,platform=False): checkProfile = config[profile] except KeyError: print("Profile "+profile+" not found") - quit() + profile = config["defaultProfile"] saveLocation = checkLocal(config[profile]["saveLocation"]) imagesLocation = checkLocal(config[profile]["imagesLocation"]) csvLocation = checkLocal(config[profile]["csvLocation"])