Fix accidentally quoted variable

This commit is contained in:
Scoder12
2020-08-11 16:50:28 -07:00
parent 0bb1ada4d3
commit d91c49568d
+1 -1
View File
@@ -462,7 +462,7 @@ class JSONKey(AsyncJSONKey):
"""
if self.dtype is not dict:
raise TypeError("key() can only be used if the datatype is dict")
return self.get().get("name", default)
return self.get().get(name, default)
def __setitem__(self, name: str, value: JSON_TYPE) -> None:
"""Sets a key inside the JSONKey's value if it is a dict.