Skip to content

Commit

Permalink
Move the epoll detection to else block of try
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz authored Apr 26, 2024
1 parent f4618db commit d1f5c44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions magicbus/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
import random
try:
import select
except ImportError:
select = None
else:
try:
epoll = select.epoll
except AttributeError:
epoll = None
except ImportError:
select = None
import sys
import time
import traceback as _traceback
Expand Down

0 comments on commit d1f5c44

Please sign in to comment.