[FIX] maintenance: avoid a crash when the creditential to access the migration server aren't correct

bzr revid: christophe@tinyerp.com-20090505083651-xmzmyhho68q5me2t
This commit is contained in:
Christophe Simonis 2009-05-05 10:36:51 +02:00
parent 4896fa8f18
commit 983c03b423
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ class remote_contract(object):
except:
raise RemoteContractException("Unable to contact the migration server")
if not self.__userid:
raise RemoteContractException("Unable to contact the migration server")
self.__rpc = xmlrpclib.ServerProxy(self.__server + 'object')