Bugfix.
This commit is contained in:
+4
-2
@@ -25,10 +25,12 @@ class RPC:
|
||||
self.__dict__.update(msg)
|
||||
|
||||
def __iter__(self):
|
||||
yield from self.__dict__.get("data", [])
|
||||
for k in self.__dict__.get("data", []):
|
||||
yield k
|
||||
|
||||
async def __aiter__(self):
|
||||
yield from self.__dict__.get("data", [])
|
||||
for k in self.__dict__.get("data", []):
|
||||
yield k
|
||||
|
||||
def __getitem__(self, name):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user