From c54fda595f23ebdf37c3f198aade5671085efb39 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Sun, 5 Nov 2023 11:08:56 +0530 Subject: [PATCH] Remove some debug code --- framework/isobot/db/items.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/framework/isobot/db/items.py b/framework/isobot/db/items.py index f4791ca2..4a7e4abe 100644 --- a/framework/isobot/db/items.py +++ b/framework/isobot/db/items.py @@ -49,8 +49,5 @@ def remove_item(self, user_id: int, item: str, *, quantity: int = 1) -> int: def fetch_item_count(self, user_id: int, item: str) -> int: """Fetches and returns the amount of a specific item owned by the user.""" - try: - items = self.load() - #print(items[str(user_id)]) - return items[str(user_id)][item] - except Exception as e: print(e) + items = self.load() + return items[str(user_id)][item]