mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix IModuleNotFoundError: No module named 'aiohttp' and change build stage
This commit is contained in:
parent
801ca1558e
commit
3c574be9d4
1 changed files with 12 additions and 3 deletions
|
|
@ -1,7 +1,16 @@
|
|||
from .bot import Bot
|
||||
from .utils.versions import Version, Stage
|
||||
import warnings
|
||||
|
||||
VERSION = Version(1, 0, 0, stage=Stage.DEV, build=0)
|
||||
try:
|
||||
from .bot import Bot
|
||||
except ImportError as e:
|
||||
if e.name == 'aiohttp':
|
||||
warnings.warn('Dependencies is not installed!', category=ImportWarning)
|
||||
else:
|
||||
raise
|
||||
|
||||
from .utils.versions import Stage, Version
|
||||
|
||||
VERSION = Version(1, 0, 0, stage=Stage.FINAL, build=0)
|
||||
API_VERSION = Version(3, 4)
|
||||
|
||||
__version__ = VERSION.version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue