Chromium Code Reviews| Index: gclient_scm.py |
| diff --git a/gclient_scm.py b/gclient_scm.py |
| index fd7e3eed1c51fcdebefa3b64d08d7acd8f7c8ba8..7ea58ef3da2b745eeb23999582075025f742169f 100644 |
| --- a/gclient_scm.py |
| +++ b/gclient_scm.py |
| @@ -761,7 +761,7 @@ class GitWrapper(SCMWrapper): |
| if self.cache_dir: |
| if not os.path.exists(altfile): |
| try: |
| - with open(altfile, 'wa') as f: |
| + with open(altfile, 'w') as f: |
| f.write(os.path.join(url, 'objects')) |
| # pylint: disable=C0301 |
| # This dance is necessary according to emperical evidence, also at: |
| @@ -773,8 +773,8 @@ class GitWrapper(SCMWrapper): |
| # this path again next time. |
| try: |
| os.remove(altfile) |
| - except Exception: |
| - pass |
| + except OSError as e: |
| + print "FAILED: os.remove('%s') -> %s" % (altfile, e) |
|
M-A Ruel
2013/07/18 19:14:52
>> sys.stderr?
|
| raise |
| else: |
| if os.path.exists(altfile): |