Skip to content

Commit

Permalink
Merge pull request ome#226 from tlambert-forks/fix/session-create
Browse files Browse the repository at this point in the history
fix logging attribute error
  • Loading branch information
joshmoore authored Jul 2, 2020
2 parents 8b22bb4 + c4fddee commit 11ae6e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/omero/util/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,11 @@ def create(self, name, pasw, props, new=True, set_current=True, sudo=None):
cb = client.submit(req) # Response is "OK"
cb.close(True)
except omero.CmdError as ce:
self.ctx.dbg(str(ce.err))
self.logger.warn(str(ce.err))
except:
import traceback
self.ctx.dbg(traceback.format_exc())

self.logger.error(traceback.format_exc())

# Reload session
sess = sf.getSessionService().getSession(uuid)
Expand Down

0 comments on commit 11ae6e3

Please sign in to comment.