summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2014-09-06 22:06:20 +0000
committerKeith Wall <kwall@apache.org>2014-09-06 22:06:20 +0000
commit3ab3a3016756d11b68120d102365aed05b02cc27 (patch)
tree984756866e9f4f1b94ce481b225a900ca872da40 /python
parent11aa1cb4e904267982136396ec0d835ddbedf572 (diff)
downloadqpid-python-3ab3a3016756d11b68120d102365aed05b02cc27.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/qpid@1622951 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/util.py b/python/qpid/util.py
index fcc126154a..37d999b771 100644
--- a/python/qpid/util.py
+++ b/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}