Closed void285 closed 5 years ago
You may use try except
to capture the exception, or I am considering raising a new exception (say NoRecordSetException
) based upon the TypeError
.
Return None
might be misleading since we can't tell if the value in the database is really None (NULL)
or it's just because of no recordsets returned.
Try to get
from an empty record will now raise GetFromEmptyRecordError
. 1c34788ebf32912955ae47958fc8c9fabc99aee6
If no recordset returned from select method, get method encountered with the following error, maybe it's better to return None.
src: