strenum is also py3.11 only
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 17 May 2023 21:54:20 +0000 (23:54 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 17 May 2023 21:54:20 +0000 (23:54 +0200)
music_assistant/common/models/enums.py

index 98a06973184066d0e56952cdbd2d5e2798bf504f..b1ee6e3dd8fce8a217330366dc92154e8dee9f18 100644 (file)
@@ -7,7 +7,7 @@ from typing import Any, TypeVar
 # pylint:disable=ungrouped-imports
 try:
     from enum import StrEnum
-except AttributeError:
+except (AttributeError, ImportError):
     # Python 3.10 compatibility for strenum
     _StrEnumSelfT = TypeVar("_StrEnumSelfT", bound="StrEnum")