[IMP] google_base_account: Catch import error if gdata libraries are not installed.
bzr revid: uco@tinyerp.com-20110224133342-oan3b58sswl5m80i
This commit is contained in:
parent
23f58050f9
commit
3794e8c51e
|
@ -21,7 +21,10 @@
|
|||
|
||||
from osv import fields,osv
|
||||
from tools.translate import _
|
||||
import gdata.contacts.service
|
||||
try:
|
||||
import gdata.contacts.service
|
||||
except ImportError:
|
||||
raise osv.except_osv(_('Google Contacts Import Error!'), _('Please install gdata-python-client from http://code.google.com/p/gdata-python-client/downloads/list'))
|
||||
|
||||
class google_login(osv.osv_memory):
|
||||
_description ='Google Contact'
|
||||
|
|
Loading…
Reference in New Issue