Skip to content

Commit 53aac49

Browse files
author
Evan Roman
committed
catch
1 parent ed190ba commit 53aac49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

azure_functions_worker/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ def main():
4848

4949
import asyncio
5050
if sys.platform != 'win32':
51-
import uvloop
52-
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
51+
try:
52+
import uvloop
53+
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
54+
except ImportError:
55+
pass
5356

5457
from . import logging
5558
from .logging import error_logger, format_exception, logger

0 commit comments

Comments
 (0)