[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:
Ujjvala Collins (OpenERP) 2011-02-24 19:03:42 +05:30
parent 23f58050f9
commit 3794e8c51e
1 changed files with 4 additions and 1 deletions

View File

@ -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'