From a1e429379bf76264518510d9db8f82bb4a40c06a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 10 Oct 2004 04:19:03 +0000 Subject: [PATCH] Fixed intermittent Google licensekey issues. --- plugins/Google.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/Google.py b/plugins/Google.py index 26ecd745b..e8630b0f9 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -136,11 +136,9 @@ class LicenseKey(registry.String): if s and len(s) != 32: raise registry.InvalidRegistryValue, 'Invalid Google license key.' try: + s = s or '' + registry.String.setValue(self, s) if s: - registry.String.setValue(self, s) - google.setLicense(self.value) - if not s: - registry.String.setValue(self, '') google.setLicense(self.value) except AttributeError: raise callbacks.Error, 'It appears that the initial import of ' \