mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 17:15:05 +08:00
12 lines
253 B
Python
12 lines
253 B
Python
|
try:
|
||
|
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||
|
except ImportError:
|
||
|
# APScheduler is not installed
|
||
|
AsyncIOScheduler = None
|
||
|
|
||
|
if AsyncIOScheduler:
|
||
|
class Scheduler(AsyncIOScheduler):
|
||
|
pass
|
||
|
else:
|
||
|
Scheduler = None
|