ome / omero-py

Python project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
22 stars 32 forks source link

CmdError: implement __str__ #151

Closed joshmoore closed 4 years ago

joshmoore commented 4 years ago

Provide a better representation of the CmdError instance even without unwrapping the err instance.

transfered from: https://github.com/ome/openmicroscopy/pull/6091

Testing this PR

$ bin/omero shell --login
import omero
import omero.all
fp = omero.cmd.FindChildren()
h = client.submit(fp)
# Manually check h.getResponse()
print(str(omero.CmdError(h.getResponse())))