diff options
| author | Ted Ross <tross@apache.org> | 2010-12-08 18:26:32 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-12-08 18:26:32 +0000 |
| commit | a8ec9ad64fd396a7cef9159f900a61b89bba0271 (patch) | |
| tree | c9133f5a51fb8a1b0a853836cb5ebd6d463971ec /qpid/tools/src | |
| parent | 131a805bb8435b1b5afd34a592c50bb44afb9bff (diff) | |
| download | qpid-python-a8ec9ad64fd396a7cef9159f900a61b89bba0271.tar.gz | |
Fix qpid-tool to not attempt to display parially-learned schemata.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1043575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/tools/src')
| -rwxr-xr-x | qpid/tools/src/py/qpid-tool | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/qpid/tools/src/py/qpid-tool b/qpid/tools/src/py/qpid-tool index 4b170d109c..e7c0231b96 100755 --- a/qpid/tools/src/py/qpid-tool +++ b/qpid/tools/src/py/qpid-tool @@ -296,13 +296,14 @@ class QmfData(Console): for key in keys: kind = "object" schema = self.session.getSchema(key) - if schema.kind == SchemaClass.CLASS_KIND_EVENT: - kind = "event" - if schema.kind == SchemaClass.CLASS_KIND_TABLE: - # - # Don't display event schemata. This will be a future feature. - # - rows.append((package, key.getClassName(), kind)) + if schema: + if schema.kind == SchemaClass.CLASS_KIND_EVENT: + kind = "event" + if schema.kind == SchemaClass.CLASS_KIND_TABLE: + # + # Don't display event schemata. This will be a future feature. + # + rows.append((package, key.getClassName(), kind)) self.disp.table("QMF Classes:", ("Package", "Name", "Kind"), rows) def schemaTable(self, text): |
