Removed warning if motor is not installed

This commit is contained in:
asimaranov 2021-12-16 20:09:44 +03:00
parent 441e78a473
commit 18ebe2954c

View file

@ -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