diff --git a/py_neuromodulation/__init__.py b/py_neuromodulation/__init__.py index 98fb8af5..3c11b4d8 100644 --- a/py_neuromodulation/__init__.py +++ b/py_neuromodulation/__init__.py @@ -43,7 +43,7 @@ if "VERSION_CODENAME" in platform.freedesktop_os_release().keys(): DIST = platform.freedesktop_os_release()["VERSION_CODENAME"] KEY = PLATFORM + "_" + DIST + "_" + ARCH - if KEY not in LSL_DICT: + else: KEY = PLATFORM + "_" + ARCH case _: KEY = "" diff --git a/py_neuromodulation/stream/__init__.py b/py_neuromodulation/stream/__init__.py index efb2138f..19582980 100644 --- a/py_neuromodulation/stream/__init__.py +++ b/py_neuromodulation/stream/__init__.py @@ -1,3 +1,7 @@ from .generator import RawDataGenerator from .mnelsl_player import LSLOfflinePlayer -from .mnelsl_stream import LSLStream + +try: + from .mnelsl_stream import LSLStream +except RuntimeError as e: + print(f"A RuntimeError occurred: {e}")