fix None if not found
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Roy Olav Purser 2022-02-05 01:59:37 +01:00
parent 1cfc0685bf
commit 78e5974a92
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -117,6 +117,8 @@ class MainHandler(tornado.web.RequestHandler):
provider_data = await stream_providers.get_any( provider_data = await stream_providers.get_any(
handler.upstream, handler.proxy, logger handler.upstream, handler.proxy, logger
) )
if provider_data is None:
return (None, None, None)
video_info = {} video_info = {}
if handler.direct: if handler.direct: