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 | 8fdd3b1b94adf07800687d7c2d100ecc278f87bc (patch) | |
| tree | 5de3c90f422d3ffe52776efcd4d546acbda6ed25 | |
| parent | 5e55a4dba94473d5383c25eef10f962652799f89 (diff) | |
| download | qpid-python-8fdd3b1b94adf07800687d7c2d100ecc278f87bc.tar.gz | |
Fix qpid-tool to not attempt to display parially-learned schemata.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1043575 13f79535-47bb-0310-9956-ffa450edef68
| -rwxr-xr-x | tools/src/py/qpid-tool | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/src/py/qpid-tool b/tools/src/py/qpid-tool index 4b170d109c..e7c0231b96 100755 --- a/tools/src/py/qpid-tool +++ b/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): |
