summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/v3arch/agent/ntforg.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/v3arch/agent/ntforg.py b/examples/v3arch/agent/ntforg.py
index 508e665..bbb08f3 100644
--- a/examples/v3arch/agent/ntforg.py
+++ b/examples/v3arch/agent/ntforg.py
@@ -47,7 +47,7 @@ config.addTrapUser(snmpEngine, 3, 'test-user', 'authPriv', (1,3,6)) # v3
# SNMP context
snmpContext = context.SnmpContext(snmpEngine)
-def cbFun(snmpEngine, errorIndication):
+def cbFun(snmpEngine, errorIndication, cbCtx):
if errorIndication:
print errorIndication
@@ -59,6 +59,5 @@ errorIndication = ntforg.NotificationOriginator(snmpContext).sendNotification(
if errorIndication:
print errorIndication
- return
-
-snmpEngine.transportDispatcher.runDispatcher()
+else:
+ snmpEngine.transportDispatcher.runDispatcher()