nonebot2/none/sched.py

12 lines
253 B
Python
Raw Normal View History

2018-08-26 10:05:42 +08:00
try:
from apscheduler.schedulers.asyncio import AsyncIOScheduler
except ImportError:
# APScheduler is not installed
AsyncIOScheduler = None
if AsyncIOScheduler:
class Scheduler(AsyncIOScheduler):
pass
else:
Scheduler = None