Merge "Pass kwargs to exception to get better format of error message"
This commit is contained in:
commit
26911744c0
@ -456,7 +456,7 @@ def check_endpoint_url(url):
|
||||
try:
|
||||
url.replace('$(', '%(') % substitutions
|
||||
except (KeyError, TypeError, ValueError):
|
||||
raise exception.URLValidationError(url)
|
||||
raise exception.URLValidationError(url=url)
|
||||
|
||||
|
||||
def create_directory(directory, keystone_user_id=None, keystone_group_id=None):
|
||||
|
@ -1016,7 +1016,7 @@ class Manager(manager.Manager):
|
||||
try:
|
||||
filter_['comparator'] = operators[op]
|
||||
except KeyError:
|
||||
raise exception.InvalidOperatorError(op)
|
||||
raise exception.InvalidOperatorError(_op=op)
|
||||
return hints
|
||||
|
||||
def _handle_shadow_and_local_users(self, driver, hints):
|
||||
|
Loading…
x
Reference in New Issue
Block a user