Fix for traceback on OSX. Fixes Bitmessage/PyBitmessage#401

This commit is contained in:
Grant T. Olson 2013-08-12 20:32:13 -04:00
parent ac4146904b
commit 0026dce551

View File

@ -355,7 +355,7 @@ def checkSensitiveFilePermissions(filename):
return True
except:
# Swallow exception here, but we might run into trouble later!
logger.error('Could not determine filesystem type.', filename)
logger.error('Could not determine filesystem type. %s', filename)
present_permissions = os.stat(filename)[0]
disallowed_permissions = stat.S_IRWXG | stat.S_IRWXO
return present_permissions & disallowed_permissions == 0