diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d433d13..3ac0a7a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: '3.7' + python-version: '3.10' - name: Install Tox run: python3 -m pip install tox - name: Run Tox diff --git a/fastsnmp/snmp_parser.pyx b/fastsnmp/snmp_parser.pyx index 2420cc3..403baf2 100644 --- a/fastsnmp/snmp_parser.pyx +++ b/fastsnmp/snmp_parser.pyx @@ -992,17 +992,19 @@ def parse_varbind(list var_bind_list not None, tuple orig_main_oids not None, tu for pos in rest_oids_positions: if pos in skip_column: continue - next_oids[pos] = "%s.%s" % (orig_main_oids[pos], last_seen_index[pos]) if not check_is_growing(first_seen_index[pos], last_seen_index[pos]): - raise SNMPException("not increasing %s vs %s for %s" % (last_seen_index[pos], - first_seen_index[pos], - orig_main_oids[pos])) + return result, tuple(next_oids) + # raise SNMPException("not increasing %s vs %s for %s" % (last_seen_index[pos], + # first_seen_index[pos], + # orig_main_oids[pos])) + next_oids[pos] = "%s.%s" % (orig_main_oids[pos], last_seen_index[pos]) else: for pos in rest_oids_positions: if not check_is_growing(first_seen_index[pos], last_seen_index[pos]): - raise SNMPException("not increasing %s vs %s for %s" % (last_seen_index[pos], - first_seen_index[pos], - orig_main_oids[pos])) + return result, tuple(next_oids) + # raise SNMPException("not increasing %s vs %s for %s" % (last_seen_index[pos], + # first_seen_index[pos], + # orig_main_oids[pos])) next_oids = [ "%s.%s" % (orig_main_oids[p], last_seen_index[p]) for p in rest_oids_positions] return result, tuple(next_oids) diff --git a/tox.ini b/tox.ini index 62c94f4..cd47f8c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37 +envlist = py310 [testenv] deps = cython