Commit bde798c
[trivial] Fix attribute error handling
When failing to access an MI object attribute, we check if that
attribute is in fact a method. If that fails as well, we're
looking for an "MI_RESULT_METHOD_NOT_FOUND" error code.
The issue is that we aren't properly retrieving the error code.
It will still throw an attribute error (for which reason it wasn't
a big concern), but the trace can be misleading and not user friendly:
http://paste.openstack.org/raw/755512/
This change will fix this issue by correctly retrieving the error
code.1 parent f5ebd24 commit bde798c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
0 commit comments