summaryrefslogtreecommitdiff
path: root/examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py')
-rw-r--r--examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py b/examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py
index fc6fbf3c..e9d199e9 100644
--- a/examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py
+++ b/examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py
@@ -27,7 +27,9 @@ from twisted.internet.task import react
from pysnmp.hlapi.twisted import *
-def success((errorStatus, errorIndex, varBinds), hostname):
+def success(args, hostname):
+ (errorStatus, errorIndex, varBinds) = args
+
if errorStatus:
print('%s: %s at %s' % (hostname,
errorStatus.prettyPrint(),