Exception message is incorrect in tackerclient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-tackerclient |
Fix Released
|
Undecided
|
Hiroo Kitamura |
Bug Description
In python-
For example, the following message:
* Exception definition
https:/
```
class InvalidInput(
message = _("Invalid input: %(reason)s")
```
* Calling exception
https:/
```
if not body:
raise exceptions.
```
It needs to specify the arguments as follows.
This is because if the argument is omitted, the first argument will be 'message '.
* Amendment
```
raise exceptions.
```
affects: | tacker → python-tackerclient |
Changed in python-tackerclient: | |
assignee: | nobody → Hiroo Kitamura (h-kitamura) |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/732076 /git.openstack. org/cgit/ openstack/ python- tackerclient/ commit/ ?id=1d033f9053a 12ed4d5406d38a7 68009c9a109397
Committed: https:/
Submitter: Zuul
Branch: master
commit 1d033f9053a12ed 4d5406d38a76800 9c9a109397
Author: Hiroo Kitamura <email address hidden>
Date: Mon Jun 1 09:57:28 2020 +0900
Fix exception message
Fix some exception messages because some exception messages are not
outputed as expected.
In addition, the codes that seems to improve readability by explicitly
specifying the arguments are also modified.
Change-Id: I425d15ea9f5a3d 0b6132ffd03cb57 7e583239c3a
Closes-Bug: #1881510