Skip to content

Commit

Permalink
snmp: don't trigger an exception on EndOfMibView
Browse files Browse the repository at this point in the history
The case should be handled in manager.
  • Loading branch information
vincentbernat committed Dec 3, 2015
1 parent ed9fa80 commit a8551d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions snimpy/snmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ def _op(self, cmd, *oids):
if len(results) == 0:
if cmd not in [self._cmdgen.nextCmd, self._cmdgen.bulkCmd]:
raise SNMPException("empty answer")
# This seems to be filtered
raise SNMPEndOfMibView("no more stuff after this OID") # nopep8
return tuple([(oid, self._convert(val)) for oid, val in results])

def get(self, *oids):
Expand Down

0 comments on commit a8551d7

Please sign in to comment.