All pastes #2132952 Raw Edit

Anonymous

public text v1 · immutable
#2132952 ·published 2012-03-27 20:28 UTC
rendered paste body
diff --git a/src/zabbixsnmp_creator.py b/src/zabbixsnmp_creator.py
index cfdbf75..e24962f 100755
--- a/src/zabbixsnmp_creator.py
+++ b/src/zabbixsnmp_creator.py
@@ -261,7 +261,8 @@ for line in in_file.readlines():
     elif valuetype == "None":
       valuetype = 3
     else:
-        raise UnboundLocalError("Should NOT be here - UNKNOWN TYPE RETURNED\n\n valuetype=%s\noid=%s" % (valuetype,oidlocal))
+        sys.stderr.write("UNKNOWN TYPE valuetype=%s\noid=%s -- IGNORING.\n" % (valuetype,oidlocal))
+        continue
 
     # with this we will specificaly show speed per second
     if re.compile("ifInOctets").match(symName) or re.compile("ifOutOctets").match(symName):