Line 31 is an improperly formatted raise command. Believe it should be: 'FIELD_ENCRYPTION_KEY defined incorrectly: {}'.format(str(e)))