Skip to content

Commit

Permalink
remove conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Apr 11, 2024
1 parent 4dc40d6 commit e989c33
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2148,15 +2148,14 @@ def connect(self, sUuid=None):
logger.debug("Ooops. no self._c")
return False
try:
if self.c is not None:
try:
sid = self.c.getSessionId()
# we have a session already from the client
if sUuid is None or sid == sUuid:
logger.debug('connected via client')
return True
except omero.ClientError: # no session available
pass
try:
sid = self.c.getSessionId()
# we have a session already from the client
if sUuid is None or sid == sUuid:
logger.debug('connected via client')
return True
except omero.ClientError: # no session available
pass

if self._sessionUuid is None and sUuid:
self._sessionUuid = sUuid
Expand Down

0 comments on commit e989c33

Please sign in to comment.