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

Attributed Error when print Exception #51

Open
wantdrink opened this issue Nov 16, 2018 · 0 comments
Open

Attributed Error when print Exception #51

wantdrink opened this issue Nov 16, 2018 · 0 comments

Comments

@wantdrink
Copy link

wantdrink commented Nov 16, 2018

Hi there,

When I use client.deleteVolume(name=volume_name) I encountered below failure.
I tried to find the root cause and found that it was because I want to store the exception into a variable in the catch block and the exception's str throw an exception.

code snippet:

try:
	cl.deleteVolume(name=vv_name)
except Exception as e:
	message = "failed to remove virtual volume, name=%s, error=%s. " % (vv_name, e)

Traceback (most recent call last):
.......
File "/opt/virtualenvs/3par/lib/python2.7/site-packages/hpe3parclient/exceptions.py",
line 105, in str
if self.http_status:AttributeError: 'Timeout' object has no attribute 'http_status'

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

No branches or pull requests

1 participant