diff options
| author | Gordon Sim <gsim@apache.org> | 2008-11-17 12:35:05 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-11-17 12:35:05 +0000 |
| commit | 1843d84107bef4518804c0b9a342f8397e6b2bc8 (patch) | |
| tree | 5a87d1cf126f7b155cdd82ae307ff63cfd3d4528 /python/commands | |
| parent | 4eaf589b156164e8e1b16cf622a00276f3360866 (diff) | |
| download | qpid-python-1843d84107bef4518804c0b9a342f8397e6b2bc8.tar.gz | |
Fix to error handling, without this I was seeing "AttributeError: Exception instance has no attribute 'message'" when e.g. the address specified did not match an available broker.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@718233 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/commands')
| -rwxr-xr-x | python/commands/qpid-config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/commands/qpid-config b/python/commands/qpid-config index 4b4bdd00b8..bd4aa613bc 100755 --- a/python/commands/qpid-config +++ b/python/commands/qpid-config @@ -379,7 +379,7 @@ try: else: Usage () except Exception,e: - print "Failed:", e.message + print "Failed:", e.args[0] sys.exit(1) bm.Disconnect() |
