mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #295 from evgfilim1/check-py-version
Check whether Python is 3.7+
This commit is contained in:
commit
8a1ae0c601
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue