summaryrefslogtreecommitdiff
path: root/pysnmp/smi/instrum.py
diff options
context:
space:
mode:
authorelie <elie>2013-06-11 20:00:11 +0000
committerelie <elie>2013-06-11 20:00:11 +0000
commite7afecac2109600e0ee11df7f63e85de076a8514 (patch)
treeebbd04745920fab4829c3813c3e582a56eed7a32 /pysnmp/smi/instrum.py
parent7fdc1203fc10fe0e1dc547a313fc628ea6340927 (diff)
downloadpysnmp-git-e7afecac2109600e0ee11df7f63e85de076a8514.tar.gz
use format_exception()
Diffstat (limited to 'pysnmp/smi/instrum.py')
-rw-r--r--pysnmp/smi/instrum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/smi/instrum.py b/pysnmp/smi/instrum.py
index d80be7db..33254df3 100644
--- a/pysnmp/smi/instrum.py
+++ b/pysnmp/smi/instrum.py
@@ -217,7 +217,7 @@ class MibInstrumController(AbstractMibInstrumController):
rval = f(tuple(name), val, idx, acInfo)
except error.SmiError:
exc_t, exc_v, exc_tb = sys.exc_info()
- debug.logger & debug.flagIns and debug.logger('flipFlopFsm: fun %s exception %s for %s=%r with traceback: %s' % (f, exc_t, name, val, traceback.format_exc(exc_tb)))
+ debug.logger & debug.flagIns and debug.logger('flipFlopFsm: fun %s exception %s for %s=%r with traceback: %s' % (f, exc_t, name, val, traceback.format_exception(exc_t, exc_v, exc_tb)))
if origExc is None: # Take the first exception
origExc, origTraceback = exc_v, exc_tb
status = 'err'