[ARVADOS] updated: a4d63932d669acd5011a7fa5afcbeec513acfe2c

git at public.curoverse.com git at public.curoverse.com
Tue Jun 16 18:18:16 EDT 2015


Summary of changes:
 sdk/python/arvados/api.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

       via  a4d63932d669acd5011a7fa5afcbeec513acfe2c (commit)
      from  7c0924d91aef5da1f69bd5f88b61880915afae4a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a4d63932d669acd5011a7fa5afcbeec513acfe2c
Author: Tom Clegg <tom at curoverse.com>
Date:   Tue Jun 16 18:17:03 2015 -0400

    Do not blow up if HOME is not set. refs #2256

diff --git a/sdk/python/arvados/api.py b/sdk/python/arvados/api.py
index 48e73f3..8294df3 100644
--- a/sdk/python/arvados/api.py
+++ b/sdk/python/arvados/api.py
@@ -90,7 +90,10 @@ def _new_http_error(cls, *args, **kwargs):
 apiclient_errors.HttpError.__new__ = staticmethod(_new_http_error)
 
 def http_cache(data_type):
-    path = os.environ['HOME'] + '/.cache/arvados/' + data_type
+    homedir = os.environ.get('HOME')
+    if not homedir or len(homedir) == 0:
+        return None
+    path = homedir + '/.cache/arvados/' + data_type
     try:
         util.mkdir_dash_p(path)
     except OSError:

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list