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