From 3794e8c51e46a44160a20e286a12a62d586e554b Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Thu, 24 Feb 2011 19:03:42 +0530 Subject: [PATCH] [IMP] google_base_account: Catch import error if gdata libraries are not installed. bzr revid: uco@tinyerp.com-20110224133342-oan3b58sswl5m80i --- addons/google_base_account/wizard/google_login.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/google_base_account/wizard/google_login.py b/addons/google_base_account/wizard/google_login.py index 91a0d88..8db6fa8 100644 --- a/addons/google_base_account/wizard/google_login.py +++ b/addons/google_base_account/wizard/google_login.py @@ -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' -- 1.7.10.4