From c09ffda359f3a4286dfb691920ac32c3662c9ed8 Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Thu, 23 May 2024 13:45:39 +0200 Subject: [PATCH] fix(DSCP): Add log message for invalid cookies --- services/DSCP/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) 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]