summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/util.py2
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}