Check whether Python is 3.7+

This commit is contained in:
evgfilim1 2020-04-06 18:20:39 +05:00
parent 5de9c9853e
commit 79f62f9e61
No known key found for this signature in database
GPG key ID: 16AEE4D0BB188AEC

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