From 65f9d9474f312234d2eb60cf59cadbf0ff2bf3ed Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Mon, 4 Mar 2024 22:32:52 +0000 Subject: [PATCH] fix syntax --- src/omero/gateway/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/omero/gateway/__init__.py b/src/omero/gateway/__init__.py index e736f9574..e75ce0d6c 100644 --- a/src/omero/gateway/__init__.py +++ b/src/omero/gateway/__init__.py @@ -1529,14 +1529,14 @@ def __init__(self, username=None, passwd=None, client_obj=None, group=None, hc = self.c.getProperty("omero.host") if self.host is None: self.host = hc - else if hc != self.host + elif hc != self.host: raise Exception("hosts %s and %s do not match" % (hc, self.host)) self.port = port if self.c is not None: pc = self.c.getProperty("omero.port") if self.port is None: self.port = pc - else if pc != self.port + elif pc != self.port: raise Exception("ports %s and %s do not match" % (pc, self.port)) self.secure = secure self.useragent = useragent