You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2014/09/07 00:06:20 UTC
svn commit: r1622951 - /qpid/trunk/qpid/python/qpid/util.py
Author: kwall
Date: Sat Sep 6 22:06:20 2014
New Revision: 1622951
URL: http://svn.apache.org/r1622951
Log:
QPID-6084: [Python Client] Guard use of sys.argv when constructing connection properties
Modified:
qpid/trunk/qpid/python/qpid/util.py
Modified: qpid/trunk/qpid/python/qpid/util.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/util.py?rev=1622951&r1=1622950&r2=1622951&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/util.py (original)
+++ qpid/trunk/qpid/python/qpid/util.py Sat Sep 6 22:06:20 2014
@@ -52,7 +52,7 @@ def get_client_properties_with_defaults(
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}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org