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]