diff options
Diffstat (limited to 'mpm/python/usrp_hwd.py')
-rwxr-xr-x | mpm/python/usrp_hwd.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py index a09ea95ed..d971cc5fc 100755 --- a/mpm/python/usrp_hwd.py +++ b/mpm/python/usrp_hwd.py @@ -12,7 +12,10 @@ import sys import time import argparse from gevent import signal -from gevent.hub import BlockingSwitchOutError +try: + from gevent.hub import BlockingSwitchOutError +except ImportError: + from gevent.exceptions import BlockingSwitchOutError import usrp_mpm as mpm from usrp_mpm.mpmtypes import SharedState from usrp_mpm.sys_utils import watchdog @@ -187,4 +190,3 @@ def main(): if __name__ == '__main__': exit(not main()) - |