Skip to content

Commit

Permalink
fix: properly raise errors for PluginNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
biodrone committed Sep 10, 2023
1 parent a66bcda commit faef870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamdl_proto_srv.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def get_stream(r):
logger.critical("Stream quality not found - exiting")
return {"error": 414}
except NoPluginError:
logger.warning(f"Streamlink is unable to handle the {r.url}")
logger.error(f"Streamlink is unable to find a plugin for {r.site}")
return {"error": 101}
except PluginError as err:
logger.warning(f"Plugin error: {err}")
logger.error(f"Plugin error: {err}")
return {"error": 102}


Expand Down

0 comments on commit faef870

Please sign in to comment.