X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=blobdiff_plain;f=src%2Fgv_backend.py;h=0d05d41ab55901d9495050cd8d8af8a4180b5fb3;hp=a7e5823b20a878ee514557fec1ed9426337f9b84;hb=e05a73034ce93f0ac08ed94b40ed67cb2181b9bb;hpb=b31befed7c29eb99367f496996e259f28699d27e 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)