Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CmdError: implement __str__ #151

Merged
merged 1 commit into from
Jan 17, 2020
Merged

CmdError: implement __str__ #151

merged 1 commit into from
Jan 17, 2020

Conversation

joshmoore
Copy link
Member

@joshmoore joshmoore commented Dec 18, 2019

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

transfered from: ome/openmicroscopy#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())))

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

transfered from: ome/openmicroscopy#6091
@joshmoore joshmoore merged commit 5dd496a into ome:master Jan 17, 2020
@joshmoore joshmoore added this to the 5.6.1 milestone Mar 17, 2020
@joshmoore joshmoore deleted the cmderror-str branch February 22, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants