Skip to content

Commit

Permalink
change typeError to attrubuteError when iter on async iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
theGowda committed Dec 1, 2024
1 parent 46ebf49 commit d9371c4
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 @@ -93,4 +93,4 @@ def __aiter__(self):
return iter(self.api.rawCmd(cmd, *words))

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

0 comments on commit d9371c4

Please sign in to comment.