summaryrefslogtreecommitdiff
path: root/apscheduler
diff options
context:
space:
mode:
Diffstat (limited to 'apscheduler')
-rw-r--r--apscheduler/schedulers/asyncio.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/apscheduler/schedulers/asyncio.py b/apscheduler/schedulers/asyncio.py
index 999f6fd..d830438 100644
--- a/apscheduler/schedulers/asyncio.py
+++ b/apscheduler/schedulers/asyncio.py
@@ -7,7 +7,10 @@ from apscheduler.util import maybe_ref
try:
import asyncio
except ImportError: # pragma: nocover
- raise ImportError('AsyncIOScheduler requires either Python 3.4 or the asyncio package installed')
+ try:
+ import trollius as asyncio
+ except ImportError:
+ raise ImportError('AsyncIOScheduler requires either Python 3.4 or the asyncio package installed')
def run_in_event_loop(func):