Skip to content

Commit

Permalink
No formating in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
glyg authored Jul 12, 2021
1 parent cf98939 commit 0384991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ def assertConnected(func):
@wraps(func)
def wrapped(conn, *args, **kwargs):
if not conn._connected:
raise Ice.ConnectionLostException(f"Trying to call {func.__name__} while not connected")
raise Ice.ConnectionLostException("You need to be connected to execute this function")

return func(conn, *args, **kwargs)
return wrapped
Expand Down

0 comments on commit 0384991

Please sign in to comment.