diff options
author | Josselin Mouette <joss@malsain.org> | 2009-12-02 10:50:29 -0200 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2009-12-02 10:50:53 -0200 |
commit | 8486bc107587f3884306252c4d97cb2d55c6d8b6 (patch) | |
tree | a170a7f30f9887c67f0f5ab50528ded92e91313f /giscanner/cachestore.py | |
parent | ad0aeac620eea48fbdfbf3441ffbc0dba6dbc699 (diff) | |
download | gobject-introspection-8486bc107587f3884306252c4d97cb2d55c6d8b6.tar.gz |
Ignore errors caused by permissions in $HOME
https://bugzilla.gnome.org/show_bug.cgi?id=596960
Diffstat (limited to 'giscanner/cachestore.py')
-rw-r--r-- | giscanner/cachestore.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py index 9ecde262..e127dda1 100644 --- a/giscanner/cachestore.py +++ b/giscanner/cachestore.py @@ -35,7 +35,10 @@ def _get_cachedir(): cachedir = os.path.join(homedir, '.cache') if not os.path.exists(cachedir): - os.mkdir(cachedir, 0755) + try: + os.mkdir(cachedir, 0755) + except OSError: + return None scannerdir = os.path.join(cachedir, 'g-ir-scanner') if not os.path.exists(scannerdir): |