From fab759f07634284dc1d3e10c1a8839807b843782 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Wed, 8 May 2024 15:17:23 -0700 Subject: [PATCH] Undo extra import handling --- ovos_plugin_manager/templates/media.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ovos_plugin_manager/templates/media.py b/ovos_plugin_manager/templates/media.py index dcdeeaad..8d94132a 100644 --- a/ovos_plugin_manager/templates/media.py +++ b/ovos_plugin_manager/templates/media.py @@ -4,10 +4,7 @@ from ovos_utils.log import LOG from ovos_utils.messagebus import FakeBus -try: - from ovos_utils.ocp import MediaState, PlayerState, TrackState -except ImportError: - MediaState, PlayerState, TrackState = None, None, None +from ovos_utils.ocp import MediaState, PlayerState, TrackState class MediaBackend(metaclass=ABCMeta): @@ -21,8 +18,6 @@ class MediaBackend(metaclass=ABCMeta): """ def __init__(self, config=None, bus=None): - if MediaState is None: - raise RuntimeError("Please update to ovos-utils~=0.1.") self._now_playing = None # single uri self._track_start_callback = None self.supports_mime_hints = False