mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Removed warning if motor is not installed
This commit is contained in:
parent
441e78a473
commit
18ebe2954c
1 changed files with 1 additions and 7 deletions
|
|
@ -2,13 +2,7 @@ import asyncio
|
|||
from contextlib import asynccontextmanager
|
||||
from typing import Any, AsyncGenerator, Dict, Optional
|
||||
|
||||
try:
|
||||
from motor.motor_asyncio import AsyncIOMotorClient
|
||||
except ModuleNotFoundError as e:
|
||||
import warnings
|
||||
|
||||
warnings.warn("Install motor with `pip install motor`")
|
||||
raise e
|
||||
from motor.motor_asyncio import AsyncIOMotorClient
|
||||
|
||||
from aiogram import Bot
|
||||
from aiogram.dispatcher.fsm.state import State
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue