Skip to content

Commit

Permalink
Merge pull request #72 from lunkwill42/bugfix/sparsewalk-errors
Browse files Browse the repository at this point in the history
Stop sparsewalk from always logging errors
  • Loading branch information
lunkwill42 authored Aug 25, 2023
2 parents 7e8fa77 + 3f30264 commit 9915be1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zino/snmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ def _var_bind_is_in_scope(var: PySNMPVarBind) -> bool:

# Build next set of query objects from last result row
query_objects = [v for v in var_binds if _var_bind_is_in_scope(v)]
if not query_objects:
break # Nothing left to query
return dict(results)

@staticmethod
Expand Down

0 comments on commit 9915be1

Please sign in to comment.