mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Fixed intermittent Google licensekey issues.
This commit is contained in:
parent
f61591016b
commit
a1e429379b
@ -136,11 +136,9 @@ class LicenseKey(registry.String):
|
|||||||
if s and len(s) != 32:
|
if s and len(s) != 32:
|
||||||
raise registry.InvalidRegistryValue, 'Invalid Google license key.'
|
raise registry.InvalidRegistryValue, 'Invalid Google license key.'
|
||||||
try:
|
try:
|
||||||
if s:
|
s = s or ''
|
||||||
registry.String.setValue(self, s)
|
registry.String.setValue(self, s)
|
||||||
google.setLicense(self.value)
|
if s:
|
||||||
if not s:
|
|
||||||
registry.String.setValue(self, '')
|
|
||||||
google.setLicense(self.value)
|
google.setLicense(self.value)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise callbacks.Error, 'It appears that the initial import of ' \
|
raise callbacks.Error, 'It appears that the initial import of ' \
|
||||||
|
Loading…
Reference in New Issue
Block a user