actions = ['encrypt', 'decrypt']
if action.lower() not in actions:
raise DbException("Unknown action ({}): Must be one of {}".format(action, actions),
actions = ['encrypt', 'decrypt']
if action.lower() not in actions:
raise DbException("Unknown action ({}): Must be one of {}".format(action, actions),