def get_secret(secret_name, default=None):
secrets_dir = get_secrets_dir()<EOL>secret_path = os.path.join(secrets_dir, secret_name)<EOL>try:<EOL><INDENT>with open(secret_path, "<STR_LIT:r>") as secret_file:<EOL><INDENT>return secret_file.read()<EOL><DEDENT><DEDENT>except OSError:<EOL><INDENT>return default<EOL><DEDENT>
Gets contents of secret file

:param secret_name: The name of the secret present in BANANAS_SECRETS_DIR
:param default: Default value to return if no secret was found
:return: The secret or default if not found