Merge pull request #295 from evgfilim1/check-py-version

Check whether Python is 3.7+
This commit is contained in:
Alex Root Junior 2020-05-10 21:42:27 +03:00 committed by GitHub
commit 8a1ae0c601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,8 @@
import sys
if sys.version_info < (3, 7):
raise ImportError('Your Python version {0} is not supported by aiogram, please install '
'Python 3.7+'.format('.'.join(map(str, sys.version_info[:3]))))
import asyncio
import os