Skip to content

Commit

Permalink
Handle removal of already configured profiles gracefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Feb 15, 2023
1 parent 48b5c14 commit 68d0153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plex_mpv_shim/video_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def load_profile(self, profile_name, reset=True):
if reset:
self.unload_profile()
log.info("Loading shader profile {0}.".format(profile_name))
if profile_name not in self.profiles:
log.error("Shader profile {0} does not exist.".format(profile_name))
return False

profile = self.profiles[profile_name]
settings_to_apply = []
shaders_to_apply = []
Expand Down

0 comments on commit 68d0153

Please sign in to comment.