Minor issue with the code
Bug #1546878 reported by
deray
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
proliantutils |
Fix Released
|
Undecided
|
kesper |
Bug Description
There is an issue with the code raising the exception, InvalidInputError, here:
https:/
Invalid::
raise exception.
This would give the result as:
TypeError: InvalidInputError does not take keyword arguments
Whereas the intended and valid way should be::
raise exception.
Or, modify the code of InvalidInputError custom exception constructor to accept keyword arguments to accommodate such invocation.
Changed in proliantutils: | |
status: | New → In Progress |
Changed in proliantutils: | |
assignee: | nobody → kesper (paresh-h-sao) |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/328904 /git.openstack. org/cgit/ openstack/ proliantutils/ commit/ ?id=32a1cc26f83 4af5faba76843cd d9fc4391c552f0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 32a1cc26f834af5 faba76843cdd9fc 4391c552f0
Author: kesper <email address hidden>
Date: Mon Jun 13 11:24:05 2016 +0530
Adds constructor for InvalidInputError
This change allows keyword arguments to constructor of tError exception. And supports the use of ``reason``
InvalidInpu
as well as user-defined arguments as part of the error message.
Closes-bug: #1546878 0be128f1006a447 ce69ebe91a1
Co-Authored-By: Debayan Ray <email address hidden>
Change-Id: I99d901b58e45a9