mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-01-31 12:34:18 +01:00
use ImportError for python 3.5 compatibility
This commit is contained in:
parent
33c8e34456
commit
85c7a05978
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue