Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pyagentx/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,16 @@ def _get_next_oid(self, oid, endoid):
for i in range(len(tlist)):
try:
sok = int(slist[i]) <= int(tlist[i])
except IndexError:
#sok = True, on most recent successful comparison
pass
try:
eok = int(elist[i]) >= int(tlist[i])
if not ( sok and eok ):
break
except IndexError:
#eok = True, on most recent successful comparison
pass
if not ( sok and eok ):
break
if sok and eok:
return tmp_oid
return None # No match!
Expand Down