diff --git a/services/DSCP/__init__.py b/services/DSCP/__init__.py index 8549f34..d6ddab9 100644 --- a/services/DSCP/__init__.py +++ b/services/DSCP/__init__.py @@ -259,6 +259,10 @@ class DSCP(Service): self.log.error("- Access Denied. Please check your subscription.") 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"]) streaming = res["data"]["attributes"]["streaming"][0]