From 999a612da84dded604647ed3eda006803bb37826 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 25 Aug 2014 20:30:30 +0200 Subject: [PATCH] wolfbot.py: error on Python <3.2 --- wolfbot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfbot.py b/wolfbot.py index 2da780d..94c9545 100755 --- a/wolfbot.py +++ b/wolfbot.py @@ -31,6 +31,10 @@ class UTCFormatter(logging.Formatter): def main(): + if sys.version_info < (3, 2): + print('Python 3.2 or newer is required to run the bot.') + sys.exit(1) + if botconfig.DEBUG_MODE: logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger()