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

Merged
grant-olson merged 1 commits from fix_for_401_traceback_in_log_output into master 2013-08-13 23:42:54 +02:00
Showing only changes of commit 0026dce551 - Show all commits

View File

@ -355,7 +355,7 @@ def checkSensitiveFilePermissions(filename):
return True return True
except: except:
# Swallow exception here, but we might run into trouble later! # 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] present_permissions = os.stat(filename)[0]
disallowed_permissions = stat.S_IRWXG | stat.S_IRWXO disallowed_permissions = stat.S_IRWXG | stat.S_IRWXO
return present_permissions & disallowed_permissions == 0 return present_permissions & disallowed_permissions == 0