diff options
| author | Keith Wall <kwall@apache.org> | 2014-09-06 22:06:20 +0000 |
|---|---|---|
| committer | Keith Wall <kwall@apache.org> | 2014-09-06 22:06:20 +0000 |
| commit | 8456b9f305e0f3c4beb23f201bd1afe8f8d9169b (patch) | |
| tree | 9fe6fd0f52b9ae67f55bf0b67a706834ddf1032b /qpid/python | |
| parent | c5743e2761aa666bce95d5a1bd7611a96c645832 (diff) | |
| download | qpid-python-8456b9f305e0f3c4beb23f201bd1afe8f8d9169b.tar.gz | |
QPID-6084: [Python Client] Guard use of sys.argv when constructing connection properties
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1622951 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid/util.py b/qpid/python/qpid/util.py index fcc126154a..37d999b771 100644 --- a/qpid/python/qpid/util.py +++ b/qpid/python/qpid/util.py @@ -52,7 +52,7 @@ def get_client_properties_with_defaults(provided_client_properties={}): client_properties = {"product": "qpid python client", "version": "development", "platform": os.name, - "qpid.client_process": os.path.basename(sys.argv[0]), + "qpid.client_process": os.path.basename(sys.argv and sys.argv[0] or ''), "qpid.client_pid": os.getpid(), "qpid.client_ppid": ppid} |
