aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cws-status4
1 files changed, 3 insertions, 1 deletions
diff --git a/cws-status b/cws-status
index b6c1fff..d65049b 100644
--- a/cws-status
+++ b/cws-status
@@ -85,8 +85,10 @@ page_html = opener.open(url).read()
# Check whether we're authenticated.
not_logged_in_search = b'Sign in to continue to Chrome Web Store'
+signin_search = b'<base href="https://accounts.google.com/v3/signin/"'
-if not_logged_in_search in page_html:
+if not_logged_in_search in page_html \
+or signin_search in page_html:
print('error: not authenticated', file=sys.stderr)
sys.exit(EX_NOUSER)