summaryrefslogtreecommitdiffstats
path: root/kolabd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-30 12:00:04 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-30 12:00:04 +0000
commite4ed71b5fd2e504e88c69beab4d4a5e93c97813a (patch)
treec4fc0de0a02bc339c97e87efe5427ba59e90b55e /kolabd
parent3739ce13564137491d92b195c781c15b2f9b60b9 (diff)
downloadpykolab-e4ed71b5fd2e504e88c69beab4d4a5e93c97813a.tar.gz
try/except synchronizing and gracefully exit if something goes wrong. The master kolabd process will restart synchronization
Diffstat (limited to 'kolabd')
-rw-r--r--kolabd/process.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/kolabd/process.py b/kolabd/process.py
index 9fe525d..ddaac63 100644
--- a/kolabd/process.py
+++ b/kolabd/process.py
@@ -37,6 +37,10 @@ class KolabdProcess(multiprocessing.Process):
)
def synchronize(self, domain):
- auth = Auth(domain)
- auth.connect(domain)
- auth.synchronize()
+ try:
+ auth = Auth(domain)
+ auth.connect(domain)
+ auth.synchronize()
+ except:
+ log.error(_("Error in process %r, terminating") % (self.name))
+ return \ No newline at end of file