catching wrong exception type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gluon |
Fix Released
|
Undecided
|
Jin Li |
Bug Description
In gluon/gluon/
There is only line of code inside the try statement: self.db_
self.db_models is a dictionary, self.db_
If api_name is not a valid key, calling self.db_
if api_name is valid, but table_name is not a valid key, calling self.db_
here is some definitions of the error types from https:/
exception ValueError
Raised when a built-in operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exception such as IndexError.
exception KeyError
Raised when a mapping (dictionary) key is not found in the set of existing keys.
exception TypeError
Raised when an operation or function is applied to an object of inappropriate type. The associated value is a string giving details about the type mismatch.
Changed in python-gluon: | |
assignee: | nobody → Jin Li (jl7351) |
Fix proposed to branch: master /review. openstack. org/419206
Review: https:/