Skip to content

Commit

Permalink
bug fix remove iter
Browse files Browse the repository at this point in the history
  • Loading branch information
theGowda committed Dec 1, 2024
1 parent 364cd71 commit 4f2e235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librouteros/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __aiter__(self):
keys = ",".join(str(key) for key in self.keys)
keys = f"=.proplist={keys}"
words = (keys,) + words
return iter(self.api.rawCmd(cmd, *words))
return self.api.rawCmd(cmd, *words)

def __iter__(self):
raise AttributeError("Use 'async for' instead of 'for' to iterate over Query results.")

0 comments on commit 4f2e235

Please sign in to comment.