fix(DSCP): Add log message for invalid cookies

This commit is contained in:
stabbedbybrick 2024-05-23 13:45:39 +02:00
parent a731f64f5c
commit c09ffda359

View File

@ -259,6 +259,10 @@ class DSCP(Service):
self.log.error("- Access Denied. Please check your subscription.") self.log.error("- Access Denied. Please check your subscription.")
sys.exit(1) sys.exit(1)
if "invalid.token" in res["errors"][0]["code"]:
self.log.error("- Invalid Token. Cookies are invalid or may have expired.")
sys.exit(1)
raise ConnectionError(res["errors"]) raise ConnectionError(res["errors"])
streaming = res["data"]["attributes"]["streaming"][0] streaming = res["data"]["attributes"]["streaming"][0]