From e05a73034ce93f0ac08ed94b40ed67cb2181b9bb Mon Sep 17 00:00:00 2001 From: epage Date: Fri, 20 Mar 2009 00:38:03 +0000 Subject: [PATCH] Backwards logic, whoops git-svn-id: file:///svnroot/gc-dialer/trunk@233 c39d3808-3fe2-4d86-a59f-b7f623ee9f21 --- src/gc_backend.py | 4 ++-- src/gv_backend.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gc_backend.py b/src/gc_backend.py index 8e38722..f664ca4 100644 --- a/src/gc_backend.py +++ b/src/gc_backend.py @@ -314,12 +314,12 @@ class GCDialer(object): def _grab_token(self, data): "Pull the magic cookie from the datastream" atGroup = self._accessTokenRe.search(data) - if atGroup is not None: + if atGroup is None: raise RuntimeError("Could not extract authentication token from GrandCentral") self._accessToken = atGroup.group(1) anGroup = self._accountNumRe.search(data) - if atGroup is not None: + if atGroup is None: raise RuntimeError("Could not extract account number from GrandCentral") self._accountNum = anGroup.group(1) diff --git a/src/gv_backend.py b/src/gv_backend.py index a7e5823..0d05d41 100644 --- a/src/gv_backend.py +++ b/src/gv_backend.py @@ -374,12 +374,12 @@ class GVDialer(object): accountNumberPage = self._browser.download(self._accountNumberURL) tokenGroup = self._tokenRe.search(accountNumberPage) - if tokenGroup is not None: + if tokenGroup is None: raise RuntimeError("Could not extract authentication token from GrandCentral") self._token = tokenGroup.group(1) anGroup = self._accountNumRe.search(accountNumberPage) - if atGroup is not None: + if atGroup is None: raise RuntimeError("Could not extract account number from GrandCentral") self._accountNum = anGroup.group(1) -- 1.7.9.5