From 128eef516f507c125ce54c250d2f0ebcb5d4ad8e Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Wed, 5 Aug 2020 19:23:58 -0700 Subject: [PATCH] Add new raises sections in docstring --- src/replit/database/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/replit/database/__init__.py b/src/replit/database/__init__.py index e716634..59fe791 100644 --- a/src/replit/database/__init__.py +++ b/src/replit/database/__init__.py @@ -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 """