qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1622951 - /qpid/trunk/qpid/python/qpid/util.py
Date Sat, 06 Sep 2014 22:06:20 GMT
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


Mime
View raw message