From e8dc2294582e74cca90b23d435c4f5170b9d5d7b Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Wed, 12 Jan 2022 21:41:31 +0300 Subject: [PATCH] Update db.py --- db.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db.py b/db.py index de83032..2710ed7 100644 --- a/db.py +++ b/db.py @@ -26,10 +26,8 @@ class ClutterDB: json_data = json.load(json_file) if key in json_data: return json_data[key] - elif "default" in kwargs: - return kwargs["default"] else: - return None + return kwargs.get("default", None) def all(self): with open(self.path_to_json, mode="r") as json_file: