[domino] log when it's impossible to get a connection to the web service

This commit is contained in:
Benjamin Dauvergne 2012-10-01 17:13:19 +02:00
parent bc4e32b106
commit 6c9aa78081
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ def synchronize_domino(publisher):
if not is_activated(publisher) or not regie:
return
client = get_client(publisher)
if client is None:
logger.warning('Unable to create a DominoWS object')
return
client.clear_cache()
users = User.values()
users_by_mail = dict(((user.email, user) for user in users))