Python Https Request Exception Handling In Pl Sql Insert