From 85c7a059785af68cf14b4d815d7d7310fc04761c Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 27 Oct 2021 18:33:23 +0200 Subject: [PATCH] use ImportError for python 3.5 compatibility --- owrx/source/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/source/__init__.py b/owrx/source/__init__.py index 28de49a..a0751b2 100644 --- a/owrx/source/__init__.py +++ b/owrx/source/__init__.py @@ -484,7 +484,7 @@ class SdrDeviceDescription(object): module = __import__("owrx.source.{0}".format(sdr_type), fromlist=[className]) cls = getattr(module, className) return cls() - except (ModuleNotFoundError, AttributeError): + except (ImportError, AttributeError): raise SdrDeviceDescriptionMissing("Device description for type {} not available".format(sdr_type)) @staticmethod