diff options
author | elie <elie> | 2013-06-11 20:00:11 +0000 |
---|---|---|
committer | elie <elie> | 2013-06-11 20:00:11 +0000 |
commit | e7afecac2109600e0ee11df7f63e85de076a8514 (patch) | |
tree | ebbd04745920fab4829c3813c3e582a56eed7a32 /pysnmp/smi/instrum.py | |
parent | 7fdc1203fc10fe0e1dc547a313fc628ea6340927 (diff) | |
download | pysnmp-git-e7afecac2109600e0ee11df7f63e85de076a8514.tar.gz |
use format_exception()
Diffstat (limited to 'pysnmp/smi/instrum.py')
-rw-r--r-- | pysnmp/smi/instrum.py | 2 |
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' |