From ec761a2813b60d27e11b1437bb4310a87d6f9211 Mon Sep 17 00:00:00 2001 From: elie Date: Fri, 14 Oct 2005 14:31:42 +0000 Subject: pretty print Agent response --- examples/v1arch/manager/nextgen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/v1arch/manager/nextgen.py b/examples/v1arch/manager/nextgen.py index 132d601..61fddf6 100644 --- a/examples/v1arch/manager/nextgen.py +++ b/examples/v1arch/manager/nextgen.py @@ -46,8 +46,10 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, # Report SNMP table for tableRow in varBindTable: for name, val in tableRow: + if val is None: + continue print 'from: %s, %s = %s' % ( - transportAddress, name, val + transportAddress, name.prettyOut(name), val.prettyOut(val) ) # Stop on EOM for oid, val in varBindTable[-1]: -- cgit v1.2.1