X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgc_backend.py;h=f664ca4c990a37f70edacee34a76d681555dfd59;hb=e05a73034ce93f0ac08ed94b40ed67cb2181b9bb;hp=8e38722b91f9fe96f2b0f3a39b8ba58b304e8a8e;hpb=b31befed7c29eb99367f496996e259f28699d27e;p=gc-dialer 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)