Skip to content
Browse files

Also try fallback mode on locking if permissions fail, fixes issue #50

  • Loading branch information
simoncadman committed Mar 2, 2014
1 parent ddd00d5 commit 644af0a20924d97ff5538d7b58e3f869a5d745dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 oauth2client/
@@ -167,7 +167,7 @@ def open_and_lock(self, timeout, delay):
self._fh = open(self._filename, self._mode)
except IOError, e:
# If we can't access with _mode, try _fallback_mode and don't lock.
if e.errno == errno.EACCES:
if e.errno == errno.EACCES or e.errno == errno.EPERM:
self._fh = open(self._filename, self._fallback_mode)

0 comments on commit 644af0a

Please sign in to comment.
You can’t perform that action at this time.