You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def network_test(self, session_id, transaction_id, oid, data):
tid = "%s_%s" % (session_id, transaction_id)
if tid in self.transactions:
del(self.transactions[tid])
try:
self.test(oid, data)
self.transactions[tid] = oid, data
except SetHandler as e:
logger.error('TestSet failed')
raise e
The line
except SetHandler as e:
Is catching SetHandler which doesn't extend from BaseException is not allowed. I think this method was intended to catch SetHandlerError. With catching SetHander, the the module will fail with:
"catching classes that do not inherit from BaseException is not allowed"
as oppose to returning a pyagentx.ERROR_WRONGVALUE back to snmpd.
The text was updated successfully, but these errors were encountered:
In sethander.py, method network_test(..)
The line
except SetHandler as e:
Is catching SetHandler which doesn't extend from BaseException is not allowed. I think this method was intended to catch SetHandlerError. With catching SetHander, the the module will fail with:
"catching classes that do not inherit from BaseException is not allowed"
as oppose to returning a pyagentx.ERROR_WRONGVALUE back to snmpd.
The text was updated successfully, but these errors were encountered: