From 67220fc96a592d68bad5042494f1da5607849a83 Mon Sep 17 00:00:00 2001
From: Athanasius <github@miggy.org>
Date: Sat, 28 Aug 2021 14:35:22 +0100
Subject: [PATCH] CAPI: Change CAPIDataRaw.__getitem__ to using __getitem__
 itself

The only use of this is stats.py, and it explicitly checks for the key's
existence first.
---
 companion.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/companion.py b/companion.py
index 3288cd74..f6301d07 100644
--- a/companion.py
+++ b/companion.py
@@ -173,7 +173,7 @@ class CAPIDataRaw:
 
     def __getitem__(self, item):
         """Make the raw_data dict's items get'able."""
-        return self.raw_data.get(item)
+        return self.raw_data.__getitem__(item)
 
 
 def listify(thing: Union[List, Dict]) -> List: