Add new raises sections in docstring

This commit is contained in:
Scoder12
2020-08-05 19:23:58 -07:00
parent dc05f16058
commit 128eef516f
+5
View File
@@ -70,6 +70,11 @@ class AsyncJSONKey:
If an invalid JSON value is read or the type does not match, it will show a
prompt asking the user what to do unless discard_bad_data is set.
Raises:
KeyError: If do_raise is true and the key does not exist.
json.JSONDecodeError: If do_raise is true and invalid JSON data is read
from the key.
Returns:
JSON_TYPE: The value read from the database
"""