diff options
Diffstat (limited to 'qpid/tools')
-rwxr-xr-x | qpid/tools/src/py/qpid-tool | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/tools/src/py/qpid-tool b/qpid/tools/src/py/qpid-tool index e7c0231b96..d3b0aa4097 100755 --- a/qpid/tools/src/py/qpid-tool +++ b/qpid/tools/src/py/qpid-tool @@ -23,6 +23,7 @@ import os import optparse import sys import socket +from types import * from cmd import Cmd from shlex import split from threading import Lock @@ -484,6 +485,8 @@ class QmfData(Console): raise ValueError ("Invalid type code: %s" % str(typecode)) def valueByType(self, typecode, val): + if type(val) is type(None): + return "absent" if typecode == 1: return "%d" % val elif typecode == 2: return "%d" % val elif typecode == 3: return "%d" % val |