wolfbot.py: error on Python <3.2

This commit is contained in:
nyuszika7h 2014-08-25 20:30:30 +02:00
parent 9d238293e9
commit 999a612da8

View File

@ -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()